Skip to content

libretro: support sensor data for emulated controllers - #414

Merged
warmenhoven merged 2 commits into
libretro:masterfrom
cscd98:gyro
Mar 10, 2026
Merged

libretro: support sensor data for emulated controllers#414
warmenhoven merged 2 commits into
libretro:masterfrom
cscd98:gyro

Conversation

@cscd98

@cscd98 cscd98 commented Mar 8, 2026

Copy link
Copy Markdown
Collaborator

Patch notes:

1. Adds accelerometer / gyros from retroarch to be used for motion controls in dolphin

This means you can now connect a Wiimote via standard bluetooth and use the libretro sensor API instead to make use of motion controls.

You can still use dolphin bar via Real Wiimote OR passthrough bluetooth mode without this if you prefer that method.

Gyro(s) are implemented but not tested as I don't own a MotionPlus controller.

Tested with retroarch (using udev sensors and sdl2 sensors) - requires compilation of RetroArch master (or a nightly starting from March 9, 2026). If the sensors do not work you should try using the retropad core to make sure things are working on your system.

Using Mario Kart Wii - allows you to turn and Wii Sports (tennis tested - allows you to swing)!

Tested under Linux.

2. Also adds a shutdown fix for mingw on windows. #412. This is a bug in standalone, it recreates threads on shutdown, which isn't exposed normally with MSVC that is used. But we use MINGW, and that exposes this bug.

3. Now adds the ability to load and prevent overwriting of WiiMote/GCPad configs. This is turned off by default. It is under Wii mote / Gyro / Swing - Load settings OFF/ON. This is for people who wish to use custom INIs.

4. Sideways toggle can now be set by the user. Found under WiiMote Sideways > Toggle Button. Defaults to OFF. Recommended button - L3 as this is unused.

5. IR modifier and Swing modifier buttons.

This allows the user to pick which buttons to are used in addition to right thumbstick to control IR control or swing control.

Default is no modifier for IR control.

Example usage: Zelda, you can change the IR modifier (to L3) which then frees up the right thumb stick to be used for swinging by setting the swing modifier to 'None'. You can still look around in Zelda but being able to swing still.

Fixes: #406

6. Also adds swing angle and IR Deadzone options.

@warmenhoven
warmenhoven merged commit e9f64e4 into libretro:master Mar 10, 2026
6 checks passed
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.

[Bug]: Not remembering controls when you set them and not seeing custom.ini per-game files Skyward Sword fix but needs work.

2 participants