godot/platform/android
Michael Conrad cc2547a9e9 Fix joystick axis mapping issues with NVIDIA shield. Probably others.
Issues addressed:

a) Axis mappings were including virtual mouse axes on NVIDIA Shield TV.

The virtual mouse axes have the same axis numbers as the normal analog stick numbers. This was completely breaking joypad support on NVIDIA Shield TV.

b) Joypads were being tracked in a List with the index in the list being treated as the Godot device id.

If a device were to be removed, any device later in the list would be shifted, potentially causing future events with the shifted joypads to have incorrect IDs according to the Godot engine.

c) Unnecessary events were being sent to the Godot engine.

A check was added (per Joystick) that will prevent sending events for all axes when only a single axis value changed.
A similar check was added for "HATs".

See #45712
2021-02-09 08:37:22 -05:00
..
api Modernize Thread 2021-01-29 12:02:13 +01:00
export Modernize Thread 2021-01-29 12:02:13 +01:00
java Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:37:22 -05:00
plugin [Plugins] Rename 'PluginConfig' struct to platform specific name 2021-01-15 17:54:35 +03:00
vulkan Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub SCons: Add explicit dependencies on thirdparty code in cloned env 2020-12-18 10:29:34 +01:00
android_keys_utils.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
android_keys_utils.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
audio_driver_jandroid.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
audio_driver_jandroid.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
audio_driver_opensl.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
audio_driver_opensl.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
detect.py Improve the logic to compile for Android by automatically detecting and setting up the Android NDK if needed. 2021-01-05 15:07:17 -08:00
dir_access_jandroid.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
dir_access_jandroid.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
display_server_android.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
display_server_android.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
file_access_android.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
file_access_android.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
java_class_wrapper.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
java_godot_io_wrapper.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
java_godot_io_wrapper.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
java_godot_lib_jni.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
java_godot_lib_jni.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
java_godot_view_wrapper.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
java_godot_view_wrapper.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
java_godot_wrapper.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
java_godot_wrapper.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
jni_utils.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
jni_utils.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
logo.png platform: Update metadata for export platforms 2020-08-01 23:43:14 -07:00
net_socket_android.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
net_socket_android.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
os_android.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
os_android.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
platform_config.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
run_icon.png Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2018-06-28 19:17:41 +02:00
string_android.h Modernize Thread 2021-01-29 12:02:13 +01:00
thread_jandroid.cpp Modernize Thread 2021-01-29 12:02:13 +01:00
thread_jandroid.h Modernize Thread 2021-01-29 12:02:13 +01:00