Skip to content

SDL3: Add Sensor Support - #19455

Open
RobLoach wants to merge 10 commits into
libretro:masterfrom
RobLoach:fix/issue-44
Open

SDL3: Add Sensor Support#19455
RobLoach wants to merge 10 commits into
libretro:masterfrom
RobLoach:fix/issue-44

Conversation

@RobLoach

Copy link
Copy Markdown
Member

This adds accelerometer and gyroscope support to the SDL3 input driver. SDL3 doesn't have an Illumination interface, so we skip that for now.

Comment thread input/drivers/sdl3_input.c Outdated
@gouchi

gouchi commented Aug 23, 2026

Copy link
Copy Markdown
Member

Tested with DS4 and mGBA and it is working !

Not sure if it could be part of this PR, adding log if sensors are available like we did with SDL2 ?

Thank you.

@RobLoach

RobLoach commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

Added the log message. Not sure I'm fond of how it's presented. Any other formating suggestions?

[SDL3] Pad #3: found sensors (accel=yes, gyro=yes).

Also added a recovery thing, so if you unplug, it'll remember the sensor.

Comment thread input/drivers_joypad/sdl3_joypad.c Outdated
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

Successfully merging this pull request may close these issues.

2 participants