Bug 270575 - [GTK][WPE] Make gamepad visible/connected on axis movement
Summary: [GTK][WPE] Make gamepad visible/connected on axis movement
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Miguel Gomez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 07:32 PST by Miguel Gomez
Modified: 2024-03-07 01:54 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Gomez 2024-03-06 07:32:16 PST
According to the spec in https://www.w3.org/TR/gamepad/#dfn-gamepadconnected: If a gamepad was already connected when the page was loaded, the gamepadconnected event SHOULD be dispatched when the user presses a button or moves an axis.

Currently we don't dispatch the gamepadconnected event when the axis is moved, just when a button is pressed.
Comment 1 Miguel Gomez 2024-03-06 07:36:35 PST
Pull request: https://github.com/WebKit/WebKit/pull/25535
Comment 2 EWS 2024-03-07 01:54:27 PST
Committed 275781@main (6b3a8aa7666d): <https://commits.webkit.org/275781@main>

Reviewed commits have been landed. Closing PR #25535 and removing active labels.