X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=aade635e02388745f5679e3336d1f11ffb731e80;hb=8f8fae700807f82bb4cb322d38215d99b1e3b483;hp=a7732a8e857ae91e289e1c860faea4b9daf5742d;hpb=7ef815fdafe95d07ab7b2527033900890b50d370;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index a7732a8e..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; @@ -443,6 +444,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();