Skip to content

SDL3: no events for touch pads on Steam Deck #12855

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

Open
cschied opened this issue Apr 20, 2025 · 2 comments
Open

SDL3: no events for touch pads on Steam Deck #12855

cschied opened this issue Apr 20, 2025 · 2 comments
Milestone

Comments

@cschied
Copy link

cschied commented Apr 20, 2025

With top of tree version of SDL3 I am trying to access the touchpads of the Steam Deck left/right to the screen. I don't see any events being generated at all when using the touch pads.

Are they supported? Which event type should they be generating?

@cschied
Copy link
Author

cschied commented Apr 20, 2025

After digging a bit into the source, I found that the x/y/pressure values for the pads are represented in the SteamDeckStatePacket_t struct, however they are not accessed at all and thus not exposed through the API. Furthermore the TrackpadDPadMode is set to NONE, though I'm not sure what exactly it does and whether it matters.

By storing the pad values in global variables (and setting dpadmode to ABSOLUTE_DPAD, though not sure if it matters) I was able to access them in my application and they work as expected.

Would it be possible to expose these trackpads properly through the SDL api?

@slouken
Copy link
Collaborator

slouken commented Apr 22, 2025

Feel free to create a PR for this. You can see an example of exposing controller touchpads in SDL_hidapi_ps5.c

@slouken slouken added this to the 3.x milestone Apr 22, 2025
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