Closed Bug 1152937 Opened 9 years ago Closed 4 years ago

Gamepad API mapping different on OS X and Windows

Categories

(Core :: Hardware Abstraction Layer (HAL), defect)

45 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1542893

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.
Hi, 

Can this be a enhancement or not? Please someone with more experience take a look. Thank you.
Component: Untriaged → Keyboard Navigation
Component: Keyboard Navigation → Hardware Abstraction Layer (HAL)
Depends on: 855364
Product: Firefox → Core
Version: 37 Branch → 45 Branch

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.

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.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
See Also: → 1542893
Resolution: FIXED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.