projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbbd254
)
added clearing player action for non-game finger release events
author
Holger Schemel
<info@artsoft.org>
Sun, 4 Oct 2020 22:59:34 +0000
(
00:59
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 4 Oct 2020 23:03:33 +0000
(
01:03
+0200)
src/events.c
patch
|
blob
|
history
src/tools.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index 69efaf508189e9631cb3b7f3b08f608f364922f5..aade635e02388745f5679e3336d1f11ffb731e80 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-408,6
+408,7
@@
void ClearEventQueue(void)
button_status = MB_RELEASED;
break;
+ case EVENT_FINGERRELEASE:
case EVENT_KEYRELEASE:
ClearPlayerAction();
break;
diff --git
a/src/tools.c
b/src/tools.c
index a041e1854ac2017d50514fa8493d9d55ed6797c1..3bc4a77fef5b9cd1d2f569ab1e059b42fd73a32d 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-4450,6
+4450,7
@@
static int RequestHandleEvents(unsigned int req_state)
break;
}
+ case EVENT_FINGERRELEASE:
case EVENT_KEYRELEASE:
ClearPlayerAction();
break;