From: Holger Schemel Date: Tue, 29 Nov 2016 19:42:40 +0000 (+0100) Subject: fixed new game control input method 'follow finger' for SDL 1.2 target X-Git-Tag: 4.0.0.0~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=19b0eb2d9f297c73cae1e57fc7774ae5ce97daf7;p=rocksndiamonds.git fixed new game control input method 'follow finger' for SDL 1.2 target --- diff --git a/src/events.c b/src/events.c index d19ff880..64744622 100644 --- a/src/events.c +++ b/src/events.c @@ -1231,8 +1231,10 @@ void HandleButton(int mx, int my, int button, int button_nr) HandleSetupScreen(mx, my, 0, 0, button); break; +#if defined(TARGET_SDL2) case GAME_MODE_PLAYING: HandleFollowFinger(mx, my, button); +#endif #ifdef DEBUG if (button == MB_PRESSED && !motion_status && IN_GFX_FIELD_PLAY(mx, my) && @@ -1851,9 +1853,11 @@ void HandleNoEvent() HandleLevelEditorIdle(); break; +#if defined(TARGET_SDL2) case GAME_MODE_PLAYING: HandleFollowFinger(-1, -1, -1); break; +#endif default: break;