added clearing joystick state to 'clear all input actions' event function
authorHolger Schemel <info@artsoft.org>
Mon, 17 Jul 2017 16:19:00 +0000 (18:19 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 17 Jul 2017 16:19:00 +0000 (18:19 +0200)
src/events.c

index 6671041620077893cc02078bc6a72725057c0f64..8ddf4e9b87e6704dac106abc5f7004dccb75022d 100644 (file)
@@ -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()