You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, as discovered in #12180 (comment), support for different gamepad features (such has haptics, additional axes, etc.) appears to be platform specific. Whether this is due to the OS or the browser, I am not sure, but I would recommend filing a bug for Chrome anyways if there isn't one.
Regardless, this information is too granular for the scope of BCD, but I've submitted a pull request to add a note to the MDN article to better clarify this.
What type of issue is this?
Browser bug (a bug with a feature that may impact site compatibility)
What information was incorrect, unhelpful, or incomplete?
No information given about axes array length limit.
What browsers does this problem apply to, if applicable?
Chromium (Chrome, Edge 79+, Opera, Samsung Internet)
What did you expect to see?
Gamepad.axes length should be 6 for a 6 axis controller but only 4 axes appear.
Did you test this? If so, how?
Reading the length of the axes array returns 4 on android but 6 on windows using the same controller connected by USB C.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes
MDN metadata
MDN page report details
api.Gamepad.axes
The text was updated successfully, but these errors were encountered: