Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbox controller (One, Series X|S) doesn't work properly #68

Open
ArieKindicator opened this issue Jan 13, 2021 · 1 comment
Open

Xbox controller (One, Series X|S) doesn't work properly #68

ArieKindicator opened this issue Jan 13, 2021 · 1 comment

Comments

@ArieKindicator
Copy link

ArieKindicator commented Jan 13, 2021

I have some issues with a Xbox controller (Series X|S and Xbox One).
When I launch WebMSX in the MS Edge browser on Xbox Series X the controller is automatically detected but the only buttons that are responsive [in "Use game control" mode] are LB and LT = Slow motion, RB and RT = fast forward, View = toggle full screen on/off, Menu = toggle "Use browsing controls" [default navigation controls in MS Edge on Xbox] / "Use game controls" other buttons [A, B] don't respond (visibly) to user input.

When I launch WebMSX on webmsx.org I'm able to toggle between controller/game control and browsing modes when the cursor is positioned outside the active WebMSX 'frame'. That is when the cursor is in the white area on the screen. Inside the WebMSX frame this isn't possible. And that is a bit problematic.
To confirm the opening message "For the best experience … NICE!" I have to switch to "browsing" mode [default Xbox navigation] because otherwise you can't accept or pass this message (the A and B buttons do't respond in game mode).

At the launch of WebMSX I'm able to switch to browsing mode and I can load a game (and change other WebMSX settings) but to play a game with the controller you have to switch back to controller/game control mode. This isn't possible because somehow, after the acceptance of the opening message the whole screen becomes the active WebMSX 'frame' and to toggle between game controls and browsing controls can only be done outside this WebMSX frame. Note: toggle full screen on/off [View button] and / or turning touch controls off doesn't solve this. The whole screen/page including the black background or border remains the active WebMSX frame.

I don't have a solution, but is it possible to enable "joystick control" to navigate / change the WebMSX menu and settings. This should only require the D pad and A or B button for confirmation. Other inputs can be done with the virtual keyboard.

Update: controller input works in "Use game controls". But full screen is still an issue.
WebMSX works fine in non full screen modes (www.webmsx.org), when the white borders are present. I'm able to switch to semi full screen by pressing the View/Menu button on the controller. This removes all browser elements (url bar, statusbar, etc.) and this increases the emulator window slightly. However completely full screen doesn't work because to switch between full screen and windowed mode. It requires a small erea on the screen that is ouside the webmsx frame or container erea. Basically to toggle it requires a small border erea to position the cursor in (cursor must be ouside the webmsx 4:3 frame/container) to use the default controller behaviour for MS Edge.

@ppeccin
Copy link
Owner

ppeccin commented Jan 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants