joaorb64 / joycond-cemuhook

Support for cemuhook's UDP protocol for joycond devices
MIT License
148 stars 18 forks source link

evdev.list_devices() does not return devices names, Stuck at: "Looking for Nintendo Switch Controllers" #67

Closed firsttris closed 2 years ago

firsttris commented 2 years ago

Hello,

i saw your post in reddit, was immediately hooked, bought some gamepads and at wanted to try out your python script.

My devices are recognized correctly:

[tristan@i5-7600kNvidia1080 joycond-cemuhook]$ evtest No device specified, trying to scan all of /dev/input/event* Not running as root, no devices may be available. Available devices: /dev/input/event20: Nintendo Switch Left Joy-Con /dev/input/event24: Nintendo Switch Right Joy-Con /dev/input/event26: Nintendo Switch Pro Controller

somehow "evdev_devices" does not return the devices names on my system.

if i print out "evdev_devices" i get

[InputDevice('/dev/input/event26'), InputDevice('/dev/input/event20'), InputDevice('/dev/input/event24')]

so it can't match the valid_devies_names.

Im on Arch Linux 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux

not much xp with python

best regards & thx for your work

Tristan