Set SDL_HINT_TOUCH_MOUSE_EVENTS with priority SDL_HINT_DEFAULT (#56)

This will ensure that the hint won't be overwritten if the hint is set before SDL is initialized
This commit is contained in:
Julian Uy 2020-06-05 01:53:55 -05:00 committed by Dave Murphy
parent 2350060886
commit 995ae3fbef
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ void
SWITCH_InitTouch(void)
{
SDL_AddTouch((SDL_TouchID) 0, SDL_TOUCH_DEVICE_DIRECT, "Switch");
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
SDL_SetHintWithPriority(SDL_HINT_TOUCH_MOUSE_EVENTS, "0", SDL_HINT_DEFAULT);
}
void