mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Actions mapped to triggers not using the full range
This commit is contained in:
parent
6689a9360c
commit
f41c72c538
12 changed files with 65 additions and 127 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue