Refresh connected/disconnected list
CaptainJL opened this issue · comments
Jean-Luc Stevens commented
Hey all,
I was wondering if there was a way to detect currentl connected devices.
Basically I want the 'devices' list to update automatically if i disconnect or reconnect a gamepad or other device.
Is there a way to see this, as it currently only reads devices seen on init of the script.
Thanks,
Rahul Bera commented
>>> from importlib import reload
>>> reload(inputs)
These 2 lines solved the problem!
For more detailed explanation
Marty Miller commented
This worked for me, but there really should be a better way than forcing to reload the module.