fixed new game control input method 'follow finger' for SDL 1.2 target
authorHolger Schemel <info@artsoft.org>
Tue, 29 Nov 2016 19:42:40 +0000 (20:42 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 29 Nov 2016 19:42:40 +0000 (20:42 +0100)
src/events.c

index d19ff88098cefc0979dbfa8c357e3e91b0805a6a..647446226abd3a975acf79ffe6c047209c03f5bd 100644 (file)
@@ -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;