zeth / inputs

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

inputs.UnknownEventType: We don't know what kind of event a Key is. #106

Open themixray opened 2 years ago

themixray commented 2 years ago

code:

print(inputs.DeviceManager().gamepads[0].read())
BirdLogics commented 2 years ago

I also have this issue. To detect gamepads which have been plugged in after the program is started, you need to create a new DeviceManager() instance. However, whenever I try to use a gamepad gotten from a new DeviceManager instance, I get an inputs.UnknownEventType error.