WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
235052
Gamepad joystick axis not being recognized as a gesture
https://bugs.webkit.org/show_bug.cgi?id=235052
Summary
Gamepad joystick axis not being recognized as a gesture
Shawn O'Connor
Reported
2022-01-10 16:39:49 PST
Chromium browsers fire a gamepadconnected event when a button is pressed or an axis is used, Safari seems to only do so when a button is pressed. See:
https://developer.mozilla.org/en-US/docs/Web/API/Window/gamepadconnected_event
Repro steps: 1) Connect a supported game controller 2) Force kill the Xbox Cloud Gaming PWA and launch it to simulate a fresh start. 3) Move the left joystick. Nothing will happen in the UI. This is what users are attempting to do in the Xbox Cloud Gaming home screen, and this leads them to believe that the service isn't working with their controller since the UI isn't being perturbed. 4) Move the d-pad or perform any digital input (LB/RB, ABXY, etc.). You should now see the UI respond. There seems to be a bug where the Xbox Cloud Gaming home screen doesn't pick up joystick inputs on a fresh start. To users, this feels like the UI isn't responding to controller input. The important thing is having the game controller connected when starting the PWA. In this case, there is no connect event that occurs as part of the plug-in and instead the connection is based on the user input.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-01-12 09:33:21 PST
<
rdar://problem/87464091
>
Calogero Mauceri
Comment 2
2022-11-29 05:59:22 PST
I am experiencing the same issue. The gamepadconnected event is not emitted when a gamepad is already connected to the machine and the stick/axis is moved, but only when a button is pressed. This is different than what stated in the documentation, i.e. "The gamepadconnected event is fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used." It properly works on Firefox and Chromium browsers.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug