engine: touch: don't emulate touch and mouse through SDL2 (taken from @Velaron branch)
This commit is contained in:
parent
f3ff942ea9
commit
92138428c5
1 changed files with 7 additions and 2 deletions
|
@ -1084,8 +1084,13 @@ void Touch_Init( void )
|
||||||
Cvar_RegisterVariable( &touch_enable );
|
Cvar_RegisterVariable( &touch_enable );
|
||||||
Cvar_RegisterVariable( &touch_emulate );
|
Cvar_RegisterVariable( &touch_emulate );
|
||||||
|
|
||||||
/// TODO: touch sdl platform
|
// TODO: touch platform
|
||||||
// SDL_SetHint( SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1" );
|
#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;
|
touch.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue