godot/platform
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
..
android Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:37:22 -05:00
iphone Merge pull request #45686 from naithar/feature/extend-plugin-params-4.0 2021-02-03 18:37:42 +01:00
javascript [HTML5] Make home path persistent in editor. 2021-02-03 18:59:54 +01:00
linuxbsd SCons: Add production=yes option to use production defaults 2021-02-03 11:48:17 +01:00
osx SCons: Add production=yes option to use production defaults 2021-02-03 11:48:17 +01:00
server SCons: Add production=yes option to use production defaults 2021-02-03 11:48:17 +01:00
uwp Modernize Thread 2021-01-29 12:02:13 +01:00
windows SCons: Add production=yes option to use production defaults 2021-02-03 11:48:17 +01:00
register_platform_apis.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00