godot/platform/android/java
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
..
app 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
gradle/wrapper Update the gradle plugins 2020-11-11 15:30:55 +01:00
lib Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:33:42 -05:00
nativeSrcsConfigs 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
build.gradle Update the logic to query for the 'scons' command executable path. 2020-11-17 12:01:59 +01:00
gradle.properties Update the gradle plugins 2020-11-11 15:30:55 +01: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-11-11 15:30:56 +01:00