Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
InputCommon: Add support for Wii Remotes in ControllerInterface #8575
AKA "Hybrid Wiimote 2.0".
An additional setting, "Connect Wii Remotes for Emulated Controllers", is added to the "Controllers" dialog.
When enabled, after real Wii Remote slots are filled, additional remotes are sent to ControllerInterface where inputs can be mapped 1:1 or completely reconfigured.
Nunchuk and Classic Controller extensions function with or without simultaneous M+.
I've found M+ calibration data is almost useless beyond providing the "handedness" of the sensors so real-time calibration must be done when data is stable. (Usually requires placing the remote on a table for a few seconds).
Raw accelerometer and gyroscope inputs are provided for IMU mappings.
The Wii Remote orientation is calculated from M+ data and corrected with accelerometer and IR data when present. Yaw/Roll/Pitch inputs are provided from this.
Pass-through of M+ presence, current extension, and battery level is possible with PR #8417.
Variable strength rumble is simulated with pulses.
I'm open to suggestions on naming of inputs.
I've tested with many official Wii Remotes and two generic ones.
To be fixed at a later date:
This fixes: https://bugs.dolphin-emu.org/issues/11642