From: Holger Schemel Date: Sun, 4 Oct 2020 22:59:34 +0000 (+0200) Subject: added clearing player action for non-game finger release events X-Git-Tag: 4.2.0.3~5 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=242a824bccbe43d9a4d6f1405943c59a86ffd262;p=rocksndiamonds.git added clearing player action for non-game finger release events --- diff --git a/src/events.c b/src/events.c index 69efaf50..aade635e 100644 --- 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 a041e185..3bc4a77f 100644 --- 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;