-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set Combined Joycons' player LED status #49
Set Combined Joycons' player LED status #49
Conversation
I tried running joycond-cemuhook as sudo to play with the Home LED and had another idea, actually. The individual joycons are accessible for sudo all the time and they have correct LED status. I could actually go by this route without these changes to joycond. |
Co-authored-by: gal20 <[email protected]>
Co-authored-by: gal20 <[email protected]>
Looks cool, thanks! The only thing I can see as potentially problematic is if someone/something else decides to set the player LEDs. Shouldn't happen in practice for people just using the typical hid-nintendo->joycond->joycond-cemuhook stack. If they ever add uniq support to uinput, I guess we can change to using that for more robustness. |
Possible solution to both #48 and joaorb64/joycond-cemuhook#27
evdev
has set LED codes, so the virtual device mappings end up showing up asLED_NUML
,LED_CAPSL
,LED_SCROLLL
, andLED_COMPOSE
, but their codes are 0, 1, 2, and 3.evtest
displays:while
/sys/class/input/inputX
has:I'm not sure if this is the best possible way to do this or if this is too much of a stretch, but this is what I could come up with.