WebPlatformForEmbedded / WPEWebKit

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

Gamepad axis connected #1255

Closed mbhatt627 closed 8 months ago

mbhatt627 commented 8 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. 

magomez commented 8 months ago

I'm not sure why you're adding 2 commits to this PR. I don't think the merge one is needed. @mbhatt627 can you update the PR removing the merge commit and leaving only the one with the change, please?

mbhatt627 commented 8 months ago

Will use the below PR https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1267