X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=c32f35e91356cf6800d7a9a50a56c5ab028bda74;hb=1a22e8bdd70708d1ee0bb3f21a456eca4e3de50a;hp=84449933d1d06a0c7a1d0511b5493bb2dbe08ac6;hpb=4364ff8e4807cbe290f6e7451e2ca203ef84adf9;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index 84449933..c32f35e9 100644 --- a/src/events.c +++ b/src/events.c @@ -464,7 +464,7 @@ static void SetPlayerMouseAction(int mx, int my, int button) local_player->mouse_action.ly = ly; local_player->mouse_action.button = button; - if (tape.recording && tape.pausing && tape.use_mouse) + if (tape.recording && tape.pausing && tape.use_mouse_actions) { // un-pause a paused game only if mouse button was newly pressed down if (new_button) @@ -1375,7 +1375,7 @@ static void HandleButtonOrFinger(int mx, int my, int button) { if (strEqual(setup.touch.control_type, TOUCH_CONTROL_FOLLOW_FINGER)) HandleButtonOrFinger_FollowFinger(mx, my, button); - else if (game.use_mouse_events && valid_mouse_event) + else if (game.use_mouse_actions && valid_mouse_event) SetPlayerMouseAction(mx, my, button); } } @@ -2098,7 +2098,7 @@ void HandleKey(Key key, int key_status) if (stored_player[pnr].snap_action) stored_player[pnr].action |= JOY_BUTTON_SNAP; - if (tape.recording && tape.pausing && !tape.use_mouse) + if (tape.recording && tape.pausing && tape.use_key_actions) { if (tape.single_step) { @@ -2633,7 +2633,7 @@ void HandleJoystick(void) return; } - if (tape.recording && tape.pausing && !tape.use_mouse) + if (tape.recording && tape.pausing && tape.use_key_actions) { if (tape.single_step) {