zeth / inputs

Cross-platform Python support for keyboards, mice and gamepads
BSD 3-Clause "New" or "Revised" License
269 stars 87 forks source link

How can I get other USB game controllers? #105

Open andkirby opened 2 years ago

andkirby commented 2 years ago

Hi there,

I have many USB controllers, but the app shows only mouse and keyboard.

Can it be extended somehow? I see there is some API to fetch inputs:

inputs.Keyboard("/dev/input/by-id/usb-A_Nice_Keyboard-event-kbd")

Can I retrieve other devices?

wrybread commented 2 years ago

Exactly what I came here to ask.

andkirby commented 2 years ago

@wrybread take a look at this https://blog.thea.codes/talking-to-gamepads-without-pygame/

It was working, but having the issue https://github.com/apmorton/pyhidapi/issues/52 now.