mirror of https://github.com/encounter/SDL.git
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:
parent
2350060886
commit
995ae3fbef
|
@ -51,7 +51,7 @@ void
|
||||||
SWITCH_InitTouch(void)
|
SWITCH_InitTouch(void)
|
||||||
{
|
{
|
||||||
SDL_AddTouch((SDL_TouchID) 0, SDL_TOUCH_DEVICE_DIRECT, "Switch");
|
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
|
void
|
||||||
|
|
Loading…
Reference in New Issue