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 6671041..8ddf4e9 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()