mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-13 00:28:18 +00:00
inputsystem: fix build with older sdl2 versions
This commit is contained in:
parent
875e52e29e
commit
a71627226a
@ -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…
Reference in New Issue
Block a user