You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix input action pressed state not changing for quick joystick movements.
fixes #6488
Also removes a bunch of dead code related to checking if a joystick axis is pressed.
(cherry picked from commit 84783fe77b)
This commit is contained in:
committed by
Rémi Verschelde
parent
6a0d47f34c
commit
e788ffff65
@@ -204,7 +204,7 @@ bool InputEvent::is_pressed() const {
|
||||
case MOUSE_BUTTON: return mouse_button.pressed;
|
||||
case JOYSTICK_BUTTON: return joy_button.pressed;
|
||||
case SCREEN_TOUCH: return screen_touch.pressed;
|
||||
case JOYSTICK_MOTION: return InputMap::get_singleton()->event_is_joy_motion_action_pressed(*this);
|
||||
case JOYSTICK_MOTION: return ABS(joy_motion.axis_value) > 0.5;
|
||||
case ACTION: return action.pressed;
|
||||
default: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user