giongto35 / cloud-game

Web-based Cloud Gaming service for Retro Game
https://www.youtube.com/watch?v=GUBrJGAxZZg
Apache License 2.0
2.32k stars 348 forks source link

controller support (game controller mode) for edge(chromium) on xbox one/series consoles #364

Open Kenneth-Audenaert opened 2 years ago

Kenneth-Audenaert commented 2 years ago

I can access a cloudretro app on my xbox one x, but the controller does not attach exclusively to the game by default. (input is also interpreted as mouse movement within the browser window.)

This can be fixed by switching to "game controller mode" within the browser (pressing the hamburger button on the controller and selecting "game controller mode") It would be nice to have this enabled by default, since the intention of this app is to play a game.

This causes the input to continue to be used as navigation for the web browser. (e.g. "B" load the previous page).

This obviously makes the cloud-game application cumbersome to use on an xbox.

If i'm not mistaken this is the documentation required to correctly implement xbox controller input scheme on xbox edge:

https://docs.microsoft.com/en-us/windows/apps/design/input/gamepad-and-remote-interactions#xy-focus-navigation-and-interaction

Sadly I lack the technical know how to do this myself, so I submit this as a feature request.