Fix Actions mapped to triggers not using the full range
This commit is contained in:
1 parent
6689a9360c
commit
f41c72c538
12 files changed
+65
-127
No files matched your search
@@ -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