Motion evdev

I only have a switch pro controller and joy-cons so below may be inaccurate for other controllers like Sony Dualshock 4.


 * Recent dolphin version (do not use 5.0 stable!)
 * HID Nintendo kernel driver (check your Linux distribution)
 * Switch pro or joycons.

The HID Nintendo kernel driver exposes 2 evdev devices, one for the buttons and another (IMU) for the accelerometers/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.

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 and find the corresponding evdev key. So for Accel Up in dolphin you need to configure Accel Z+.

IMAGE

The end result should look like below.

IMAGE