mirror of
https://github.com/celisej567/source-engine.git
synced 2025-12-31 21:48:22 +03:00
inputsystem: fix build with older sdl2 versions
This commit is contained in:
@@ -20,9 +20,7 @@ int TouchSDLWatcher( void *userInfo, SDL_Event *event )
|
||||
{
|
||||
CInputSystem *pInputSystem = (CInputSystem *)userInfo;
|
||||
|
||||
SDL_Window *window = SDL_GetWindowFromID(event->tfinger.windowID);
|
||||
if( !window )
|
||||
return 0;
|
||||
if( !event || !pInputSystem ) return 1;
|
||||
|
||||
switch ( event->type ) {
|
||||
case SDL_FINGERDOWN:
|
||||
|
||||
Reference in New Issue
Block a user