godot/platform
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
..
android Fix joystick axis mapping issues with NVIDIA shield. Probably others. 2021-02-09 08:33:42 -05:00
iphone [iOS] Remove remote notifications code 2021-02-05 09:26:09 +01:00
javascript Merge pull request #45706 from Faless/js/3.x_editor_preload 2021-02-04 14:54:04 +01:00
osx SCons: Add production=yes option to use production defaults 2021-02-05 09:26:09 +01:00
server SCons: Add production=yes option to use production defaults 2021-02-05 09:26:09 +01:00
uwp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
windows SCons: Add production=yes option to use production defaults 2021-02-05 09:26:09 +01:00
x11 Fix used uninitialized warning in os_x11.cpp 2021-02-06 10:43:02 +00:00
register_platform_apis.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00