sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Steam Deck stick touch support

Open gordon-quad opened this issue 2 years ago • 4 comments

Steam Deck has touch sensors in the sticks' caps, would be nice to see it supported in scc.

gordon-quad avatar Jan 30 '23 10:01 gordon-quad

I do not have a Steam Deck so that would be up to someone else to add support for those touch buttons. Been a while since I looked at the source code so I am not sure how much would need to be changed to add two new mappable buttons to the mapper.

Ryochan7 avatar Jan 31 '23 17:01 Ryochan7

would love to help and send a PR with that feature with a little guidance, if you can point me at the code where I can add additional buttons and stuff (assuming it's just yet another HID button ofc).

gordon-quad avatar Jan 31 '23 19:01 gordon-quad

Looking over the steamdeck.py module and there is some placeholder code for handling stick touches. The mapper is fairly open ended when it comes to handling digital buttons. It looks like two new mappable buttons would have to be created for SCButtons (constants.py) to have the daemon work.

Exposing new mappings in the GUI is a bigger challenge. Would need to edit the deck.svg file with a new element and then I am not sure what hook would be required to establish the callback for calling the button edit dialog.

Ryochan7 avatar Apr 15 '23 21:04 Ryochan7

I will look into this feature and see if I can add support for the touch events.

Dark3clipse avatar Jul 22 '23 13:07 Dark3clipse