Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.Gamepad.axes - The API on Android and chrome only has 4 axes on a 6 axis controller. #24414

Closed
AnthonyTekuma opened this issue Sep 11, 2024 · 1 comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@AnthonyTekuma
Copy link

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
  • Query: api.Gamepad.axes
  • Report started: 2024-09-11T03:05:14.560Z
@queengooborg queengooborg added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 11, 2024
@queengooborg
Copy link
Contributor

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.

@queengooborg queengooborg closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

2 participants