diff options
author | Michael Conrad <m.conrad.202@gmail.com> | 2021-02-06 12:54:09 -0500 |
---|---|---|
committer | Michael Conrad <m.conrad.202@gmail.com> | 2021-02-09 08:37:22 -0500 |
commit | cc2547a9e9f8991e09d35e6454401491fc4ef271 (patch) | |
tree | 4354df664a1aedfbcc047b6c6570e2a8f8ef3b6b /scene | |
parent | fa2f7693bb9efc44755b1b693b22ec2788910a0d (diff) |
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
Diffstat (limited to 'scene')
0 files changed, 0 insertions, 0 deletions