Ryochan7 / sc-controller

User-mode driver and GTK3 based GUI for Steam Controller
GNU General Public License v2.0
176 stars 23 forks source link

Steam Deck stick touch support #80

Open gordon-quad opened 1 year ago

gordon-quad commented 1 year ago

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

Ryochan7 commented 1 year ago

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.

gordon-quad commented 1 year ago

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).

Ryochan7 commented 1 year ago

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.

Dark3clipse commented 1 year ago

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