Open geajack opened 4 years ago
Hey, did you ever figure this out? Im running into a simmilar issue where I have a program that can parse xbox controller input. If I plug in the Xbox controller and start the program, the controller will be recongnized but if I start the program and then plug in the controller the controller will not be recognized. I have a seperate "start" button that tells the program to kick off the xbox listening thread, which calls "events = get_gamepad()" command. I have a feeling this issue might be happening because of how the get_gamepad lib is getting initialized.... "from inputs import get_gamepad"
I have a generic USB gamepad (non X-Box). If I plug it in before starting the Python interpreter, then
get_gamepad()
works as expected. However, if I start the Python interpreter and then runget_gamepad()
, I get anUnpluggedError
.Based on what I saw in another ticket here, I tried to "refresh" the devices by calling
DeviceManager()
, but then I get:And
get_gamepad()
continues to exhibit the same unexpected behavior.I'm doing this on a Lenovo Yoga C930 with Ubuntu 19.10.