Browse Source

inputsystem: fix build with older sdl2 versions

ssdk2013
nillerusr 3 years ago
parent
commit
a71627226a
  1. 4
      inputsystem/touch_sdl.cpp

4
inputsystem/touch_sdl.cpp

@ -20,9 +20,7 @@ int TouchSDLWatcher( void *userInfo, SDL_Event *event )
{ {
CInputSystem *pInputSystem = (CInputSystem *)userInfo; CInputSystem *pInputSystem = (CInputSystem *)userInfo;
SDL_Window *window = SDL_GetWindowFromID(event->tfinger.windowID); if( !event || !pInputSystem ) return 1;
if( !window )
return 0;
switch ( event->type ) { switch ( event->type ) {
case SDL_FINGERDOWN: case SDL_FINGERDOWN:

Loading…
Cancel
Save