mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
`Input::joy_axis` converts trigger values to be between 0.0f to 1.0f by default. This is not needed for Android, as values are already within that range, as per Android documentation: https://developer.android.com/reference/android/view/MotionEvent#AXIS_RTRIGGER
This patch prevents this conversion on Android, which caused L2 and R2 triggers to get stuck pressed. https://github.com/godotengine/godot/issues/79263
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| default_controller_mappings.h | ||
| gamecontrollerdb.txt | ||
| godotcontrollerdb.txt | ||
| input.cpp | ||
| input.h | ||
| input_builders.py | ||
| input_enums.h | ||
| input_event.cpp | ||
| input_event.h | ||
| input_map.cpp | ||
| input_map.h | ||
| SCsub | ||
| shortcut.cpp | ||
| shortcut.h | ||