X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=7f71d4b790c68cf13fda22c0bb4dba5d4a6dfa30;hp=8d1de10daab05453a25e881a39f478064d1b3681;hb=34efaa3925a28cb95ecb05bf2c693c16f6edfe2f;hpb=0a87fde47bcff35f196024766f8d0d00319a28d1 diff --git a/src/events.c b/src/events.c index 8d1de10d..7f71d4b7 100644 --- a/src/events.c +++ b/src/events.c @@ -622,12 +622,19 @@ static int HandleJoystickForAllPlayers() { byte joy_action = 0; + /* if (!setup.input[i].use_joystick) continue; + */ joy_action = Joystick(i); result |= joy_action; + + if (!setup.input[i].use_joystick) + continue; + + stored_player[i].action = joy_action; }