mdn / mdn/browser-compat-data

api.Window.gamepadconnected_event - Joystick events are not registering Bluetooth controllers on iOS/android mobile phones

Open
#19,766 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:multiple data:api needs browser bug
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

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?
  1. Connect any controller to bluetooth on iPhone (I used an Xbox controller)
  2. Use left/right joysticks to try and register the controller (I used luna.amazon.com)

Expected:

  • gamepadconnected_event is fired and gamepad is registered
    Actual:
  • Controller does not get registered until a button other than the joysticks is used (such as dpad, A, X, Y)
What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet), Safari

What did you expect to see?

I expect to see the controller registered to the browser

Did you test this? If so, how?
  1. Connect any controller to bluetooth on iPhone (I used an Xbox controller)
  2. Use left/right joysticks to try and register the controller (I used luna.amazon.com)

Expected:

  • gamepadconnected_event is fired and gamepad is registered
    Actual:
  • Controller does not get registered until a button other than the joysticks is used (such as dpad, A, X, Y)
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/Window/gamepadconnected_event

MDN metadata
MDN page report details
  • Query: api.Window.gamepadconnected_event
  • Report started: 2023-05-09T20:02:04.546Z

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the current compatibility data entry for Window.gamepadconnected_event, using the linked MDN URL as the entry point. Reproduce the Bluetooth joystick behavior on the listed mobile browsers and compare it with the existing data. Done means the compatibility data accurately reflects whether joystick input registers the controller and fires gamepadconnected_event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.