engine: platform: sdl: try to fix 1.2 build

This commit is contained in:
Alibek Omarov
2022-01-04 08:39:11 +03:00
committed by a1batross
parent d0a39ef492
commit a2f741fe8a
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -273,8 +273,10 @@ static void SDLash_MouseEvent( SDL_MouseButtonEvent button )
int down = button.state != SDL_RELEASED;
uint mstate = 0;
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
if( button.which == SDL_TOUCH_MOUSEID )
return;
#endif
switch( button.button )
{