virtualx-engine/platform/android
Michael Conrad 8777282c40 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:33:42 -05:00
..
api Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
export [Plugins] Rename 'PluginConfig' struct to platform specific name 2021-01-15 02:12:53 +03:00
java Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:33:42 -05:00
plugin [Plugins] Rename 'PluginConfig' struct to platform specific name 2021-01-15 02:12:53 +03:00
android_keys_utils.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
android_keys_utils.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_driver_jandroid.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_driver_jandroid.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_driver_opensl.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_driver_opensl.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
detect.py Improve the logic to compile for Android by automatically detecting and setting up the Android NDK if needed. 2021-02-05 13:29:02 +01:00
dir_access_jandroid.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dir_access_jandroid.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_android.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_android.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_class_wrapper.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_io_wrapper.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_io_wrapper.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_lib_jni.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_lib_jni.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_wrapper.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
java_godot_wrapper.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
jni_utils.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
jni_utils.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
logo.png platform: Update metadata for export platforms 2020-08-14 00:32:05 +02:00
net_socket_android.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
net_socket_android.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
os_android.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
os_android.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
platform_config.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
power_android.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
power_android.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
run_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
SCsub Remove unused FileAccessJAndroid. 2020-12-09 12:00:50 +01:00
string_android.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
thread_jandroid.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
thread_jandroid.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00