From f41c72c5384ff9ce34f60380d4f27b9af0904298 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sat, 25 Dec 2021 09:29:08 +0000 Subject: Fix Actions mapped to triggers not using the full range --- platform/android/android_input_handler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'platform/android/android_input_handler.cpp') diff --git a/platform/android/android_input_handler.cpp b/platform/android/android_input_handler.cpp index 7efdc620df..246ec6b198 100644 --- a/platform/android/android_input_handler.cpp +++ b/platform/android/android_input_handler.cpp @@ -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); -- cgit v1.2.3