moved function for processing 'follow finger' controls if no events pending
authorHolger Schemel <info@artsoft.org>
Tue, 28 Nov 2017 08:32:18 +0000 (09:32 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:16 +0000 (23:21 +0100)
src/events.c

index 0fd37032ba306f436f8be3ebcc0a4edb79a8f00c..bbc211745fd01ed7ce09ab5648d3c550d0edab80 100644 (file)
@@ -1931,6 +1931,15 @@ void HandleKey(Key key, int key_status)
 void HandleNoEvent()
 {
   HandleMouseCursor();
+
+  switch (game_status)
+  {
+#if defined(TARGET_SDL2)
+    case GAME_MODE_PLAYING:
+      HandleFollowFinger(-1, -1, -1);
+      break;
+#endif
+  }
 }
 
 void HandleEventActions()
@@ -1962,12 +1971,6 @@ void HandleEventActions()
       HandleLevelEditorIdle();
       break;
 
-#if defined(TARGET_SDL2)
-    case GAME_MODE_PLAYING:
-      HandleFollowFinger(-1, -1, -1);
-      break;
-#endif
-
     default:
       break;
   }