Gamepad API mapping different on OS X and Windows
Categories
(Core :: Hardware Abstraction Layer (HAL), defect)
Tracking
()
People
(Reporter: zacharyjandersen, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36 Steps to reproduce: Using a wired Xbox 360 controller on OS X 10.9.5, check what each button reports as. Using same Xbox 360 controller on Windows 7, check what each button reports as. Both are running Firefox 37.0.1 Actual results: The button maps between OS X and Windows are not the same. Also tried Chrome, to see if it was just the difference in the operating system. Chrome reports the same way on both OS X and Windows, which is the same as Firefox on Windows. Expected results: They should behave the same way on both.
Comment 1•9 years ago
|
||
Hi, Can this be a enhancement or not? Please someone with more experience take a look. Thank you.
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•4 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•4 years ago
|
Description
•