Motion evdev: Difference between revisions

Jump to navigation Jump to search
m (Remove duplicate text)
m (formatting changes)
Line 1: Line 1:
Dolphin supports the motion evdev devices but setting it up is a bit awkward. Nintendo controllers (JoyCon and Pro controller) are supported through the hid-nintendo driver. Sony DualShock4 and DualSense through hid-playstation.
Dolphin supports the motion [https://en.wikipedia.org/wiki/Evdev evdev] devices but setting it up is a bit awkward. Nintendo controllers (JoyCon and Pro controller) are supported through the hid-nintendo driver. Sony DualShock4 and DualSense through hid-playstation.


The HID kernel driver exposes 2 (or more) evdev devices, one for the buttons and another for the accelerators/gyroscopes. The hid-nintendo driver exposes the motion axis on an IMU device while hid-playstation named it "Wireless Controller Motion Sensors". Do note that Nintendo Joy-Cons will have 2 devices each (4 in total).
The HID kernel driver exposes 2 (or more) evdev devices, one for the buttons and another for the accelerators/gyroscopes. The hid-nintendo driver exposes the motion axis on an IMU device while hid-playstation named it "Wireless Controller Motion Sensors". Do note that Nintendo Joy-Cons will have 2 devices each (4 in total).


You may need to add the users to a specific group to be allowed access. On Arch linux this group is "input".
You may need to add the users to a specific group to be allowed access. On Arch linux this group is ''input''.




Line 10: Line 10:
{| class="wikitable"
{| class="wikitable"
!Dolphin motion
!Dolphin motion
!Evdev axis HID Nintendo
!Switch controllers
!Evdev axis Sony DualSense
!Sony DualSense
|-
|-
|Accel Up
|Accel Up
Line 66: Line 66:
[[File:Select_imu_device.png]]
[[File: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.
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.


[[File:Advanced_config_result.png]]
[[File:Advanced_config_result.png]]


Repeat this for every motion.
Repeat this for every motion.