godot/platform/android/java
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
..
app 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
gradle/wrapper Update the gradle plugins 2020-10-28 23:59:33 -07:00
lib Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:37:22 -05:00
nativeSrcsConfigs 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
build.gradle Update the logic to query for the 'scons' command executable path. 2020-11-14 14:36:53 -08:00
gradle.properties Update the gradle plugins 2020-10-28 23:59:33 -07:00
gradlew Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00
gradlew.bat Git: Explicitly list binary files as such to avoid EOL change 2019-05-25 10:43:48 +02:00
settings.gradle Add a separate `nativeSrcsConfigs` module to handle Android Studio constraints for native code editor support. 2020-10-29 00:01:14 -07:00