WebPlatformForEmbedded / WPEWebKit

WPE WebKit port (downstream)
210 stars 135 forks source link

make gamepad visible/connected when gamepad axis is moved #1267

Closed mbhatt627 closed 6 months ago

mbhatt627 commented 6 months ago

< Make gamepad visible on axis movement >

Reviewed by NOBODY (OOPS!).

https://www.w3.org/TR/gamepad/#dfn-gamepadconnected

W3C Gamepad says A user agent MUST dispatch this event type to indicate the user has connected a gamepad. 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 with axis movement, gamepad does not show connected.