margorski / exodos-launcher

Launcher for eXoDOS. Basic and forked from Flashpoint Launcher repository (https://github.com/FlashpointProject/launcher)
https://exodos.the-eye.us
MIT License
35 stars 5 forks source link

Make touch-screen scrolling easier for SteamDeck gaming mode #50

Closed parricc closed 2 months ago

parricc commented 3 months ago

Scrolling through the games list as well as the side panes needs to be much easier from a touch screen for the Steam Deck's gaming mode.

As Electron apps work through the use of Chromium, there is hopefully an easy way to implement this. I have tried adding --enable-touch-events as a launch parameter to see if that did anything, but the behavior did not change.

Moving your finger up and down over the right-hand pane currently results in text being highlighted. Meanwhile, moving your finger over the game list picks up a row as if it were being dragged. This behaves in the same way as when you hold your mouse button down and drag on a desktop computer. Ideally, we want the behavior to be scrolling up and down, with the speed depending on how close the finger is from where it initially was.

parricc commented 2 months ago

This isn't an exogui problem. It appears Steam was overriding exogui's already functional touchscreen support that worked in desktop mode.

The solution is to change the settings in Steam. Open exogui in gaming mode. Press the steam button. On the touch screen, press "Controller settings." If it's still showing a diagram of a controller, press "Controller settings" at the bottom. Now, under "Current Button Layout", select "Edit Layout". Then, on the left-hand pane, select "Action Sets." Press the gear icon next to Default, and select "Add Always-On command." Then, next to Always On Command, press on "Add command" button. At the top, select "SYSTEM." And then below that, press "Touchscreen Native Support." Now go back, and exit out of everything, returning to exogui. Now, touchscreen will work exactly the way we want it to.