libretro: support sensor data for emulated controllers - #414
Merged
Conversation
cscd98
force-pushed
the
gyro
branch
5 times, most recently
from
March 8, 2026 17:19
b650b71 to
a8bfafa
Compare
cscd98
force-pushed
the
gyro
branch
2 times, most recently
from
March 9, 2026 16:04
cf8ac42 to
1d9974b
Compare
cscd98
force-pushed
the
gyro
branch
4 times, most recently
from
March 10, 2026 17:19
c80ca30 to
d2a321f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.