Motion evdev: Difference between revisions

m
Small formatting updates and better explaination.
(WIP inital text dump. TODO styling, formatting and upload images)
 
m (Small formatting updates and better explaination.)
Line 1: Line 1:
I only have a switch pro controller and joy-cons so below may be inaccurate for other controllers like Sony Dualshock 4.
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.


* Recent dolphin version (do not use 5.0 stable!)
* Recent dolphin version (do not use 5.0 stable!)
* HID Nintendo kernel driver (check your Linux distribution)
* HID Nintendo kernel driver (dkms https://github.com/nicman23/dkms-hid-nintendo)
* Switch pro or joycons.
* Switch pro or Joy-Con.


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).
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.
It took me a bit of time figuring out which axis corresponds with the right motion control in dolphin.
Line 50: Line 50:
|}
|}


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+.
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 and find the corresponding evdev key.  


IMAGE
IMAGE
So for "Accel Up" in dolphin you need to configure "Accel Z+".


The end result should look like below.
The end result should look like below.


IMAGE
IMAGE