zeth/inputs

Refresh connected/disconnected list

Opened this issue · 2 comments

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,

>>> from importlib import reload
>>> reload(inputs)

These 2 lines solved the problem!
For more detailed explanation

This worked for me, but there really should be a better way than forcing to reload the module.