Motion evdev

From Dolphin Emulator Wiki
Revision as of 18:51, 1 October 2021 by Infirit (talk | contribs) (Make it explicit that axies are for HID nintendo)
Jump to navigation Jump to search

These instruction are made with a Nintendo Pro controller and Joy-Cons. While the overall process will be the same the motion axis may not match those found on a Sony DualShock 4.

The HID Nintendo kernel driver exposes 2 evdev devices, one for the buttons and another (IMU) for the accelerators/gyroscopes. Do note that Joy-Cons will have 2 devices each (4 in total).

It took me a bit of time figuring out which axis corresponds with the right motion control in dolphin.

Dolphin motion Evdev axis HID Nintendo
Accel Up Accel Z+
Accel Down Accel Z-
Accel Left Accel Y+
Accel Right Accel Y-
Accel Forward Accel X+
Accel Backward Accel X-
Pitch Up Gyro Y-
Pitch Down Gyro Y+
Roll Left Gyro X-
Roll Right Gyro X+
Yaw Left Gyro Z+
Yaw Right Gyro Z-

As the default buttons are all wrong reset all buttons in the Wii Remote configuration. To configure the motion controls you have to use the advanced config window. Right click on each motion button in the Wii Remote configure window. Select the appropriate IMU device at the top in the device selection.

Select imu device.png

Select the corresponding Accel or Gyro axis, select it and click ok. For example for "Accel Up" in dolphin you need to select "Accel Z+". The end result should look like below.

Advanced config result.png

Repeat this for every motion.