DanielOgorchock / joycond

userspace daemon to combine joy-cons from the hid-nintendo kernel driver
GNU General Public License v3.0
340 stars 68 forks source link

movement controls issue on a switch pro controller #89

Open sigzegv opened 2 years ago

sigzegv commented 2 years ago

I am new to the switch pro controller world on linux. I have the hid_nintendo driver working perfectly when loaded alone without joycond, all the controls and the gyro works fine (eg with yuzu everything fine at the same time).

But I also want to use this config with steam, and I saw the joycond service provides a fix with udev rules to allow hid_nintendo to not conflict with steam driver. The issue I have, when I start hid_nintendo + joycond, is that the gyro controls seems to be detected as a secondary controller. It's not usually an issue for steam games, but I cannot use gyro controls on yuzu anymore after that.

Is this a known limitation or is there a fix ?

infirit commented 2 years ago

Yuzu and ryujinx use the raw input devices through sdl2 gamepad not the hid_nintendo driver. The secondary evdev device is how hid_nintendo (and playstation) expose the gyro and accel, this is how it should be.

I'll check tonight if I can reproduce this but last time yuzu worked fine with joycond running.

sigzegv commented 2 years ago

I checked using the pad on yuzu without the hid_nintendo driver works but it's very unconfortable because the 4 little bottom ligths are constantly sweeping (like it doesnt find a slot), (and I don't get the motion sensor detected either without hid_nintendo). I'll wait for your test for gyro/accel on yuzu with joycond.

infirit commented 2 years ago

Yeah, the joycond udev rules break yuzu. If the virtual device is supposed to allow for this then it's not working.

sigzegv commented 2 years ago

is there anything you can do ?