diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index 1dcb433b..b3cd2b3a 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -1084,8 +1084,13 @@ void Touch_Init( void ) Cvar_RegisterVariable( &touch_enable ); Cvar_RegisterVariable( &touch_emulate ); - /// TODO: touch sdl platform - // SDL_SetHint( SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1" ); + // TODO: touch platform +#if SDL_VERSION_ATLEAST( 2, 0, 10 ) + SDL_SetHint( SDL_HINT_MOUSE_TOUCH_EVENTS, "0" ); + SDL_SetHint( SDL_HINT_TOUCH_MOUSE_EVENTS, "0" ); +#else + SDL_SetHint( SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1" ); +#endif touch.initialized = true; }