From: Holger Schemel Date: Sun, 4 Oct 2020 22:57:27 +0000 (+0200) Subject: added clearing virtual buttons when clearing player action X-Git-Tag: 4.2.0.3~6 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bbbd254d0e097f479e20a06ddf97eb84782c2e82 added clearing virtual buttons when clearing player action --- diff --git a/src/events.c b/src/events.c index a7732a8e..69efaf50 100644 --- a/src/events.c +++ b/src/events.c @@ -443,6 +443,9 @@ void ClearPlayerAction(void) stored_player[i].snap_action = 0; } + // simulate finger release events for still pressed virtual buttons + overlay.grid_button_action = JOY_NO_ACTION; + ClearTouchInfo(); ClearJoystickState(); ClearPlayerMouseAction();