From: Holger Schemel Date: Mon, 17 Jul 2017 16:19:00 +0000 (+0200) Subject: added clearing joystick state to 'clear all input actions' event function X-Git-Tag: 4.0.1.0~23 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=be1b616f2f6738d1d143df80031dc6b9cd35594f added clearing joystick state to 'clear all input actions' event function --- diff --git a/src/events.c b/src/events.c index 66710416..8ddf4e9b 100644 --- a/src/events.c +++ b/src/events.c @@ -378,6 +378,8 @@ void ClearPlayerAction() key_joystick_mapping = 0; for (i = 0; i < MAX_PLAYERS; i++) stored_player[i].action = 0; + + ClearJoystickState(); } void SleepWhileUnmapped()