Gamepad API mapping different on OS X and Windows
Categories
(Core :: Hardware Abstraction Layer (HAL), defect)
Tracking
()
People
(Reporter: zacharyjandersen, Unassigned)
References
Details
Comment 1•9 years ago
|
||
I ran into this bug on Linux, too. Tested with a DS4 controller connected per USB: The triangle (should be button index 3) and square (should be button index 2) button are switched. My interpretation on what is the right mapping is based on the W3C Gamepad Draft: https://w3c.github.io/gamepad/#remapping
My results:
Ubuntu 18.04.3, Firefox 70b4
Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
-> Wrong. Buttons are switched.
Ubuntu 18.04.3, Chromium 76
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36
-> Correct.
Windows 10, Firefox 69
-> Correct.
If more information are required I'd be happy to help.
Comment 3•5 years ago
|
||
We already implemented a remapper mechanism (Bug 1542893) in Gecko Windows and Mac OS, I think their mapping should be matched now. Please let know if there is other controllers need to help.
Updated•5 years ago
|
Description
•