projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70357bc
)
moved function for processing 'follow finger' controls if no events pending
author
Holger Schemel
<info@artsoft.org>
Tue, 28 Nov 2017 08:32:18 +0000
(09:32 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:16 +0000
(23:21 +0100)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index 0fd37032ba306f436f8be3ebcc0a4edb79a8f00c..bbc211745fd01ed7ce09ab5648d3c550d0edab80 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-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;
}