You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix Actions mapped to triggers not using the full range
This commit is contained in:
@@ -39,10 +39,7 @@ void AndroidInputHandler::process_joy_event(AndroidInputHandler::JoypadEvent p_e
|
||||
Input::get_singleton()->joy_button(p_event.device, (JoyButton)p_event.index, p_event.pressed);
|
||||
break;
|
||||
case JOY_EVENT_AXIS:
|
||||
Input::JoyAxisValue value;
|
||||
value.min = -1;
|
||||
value.value = p_event.value;
|
||||
Input::get_singleton()->joy_axis(p_event.device, (JoyAxis)p_event.index, value);
|
||||
Input::get_singleton()->joy_axis(p_event.device, (JoyAxis)p_event.index, p_event.value);
|
||||
break;
|
||||
case JOY_EVENT_HAT:
|
||||
Input::get_singleton()->joy_hat(p_event.device, p_event.hat);
|
||||
|
||||
Reference in New Issue
Block a user