mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
parent
6a0d47f34c
commit
e788ffff65
4 changed files with 8 additions and 60 deletions
|
|
@ -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: {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue