Open PickleTicklewithnospace opened 4 years ago
It bothers me, too. I try to solve it by import atexit Like this:
import atexit
vc = pyxinput.vController(False)
@atexit.register
def unPlug():
print("Virtual Controller UnPlug")
vc.UnPlug(True)
If the program crashes/exits unexpectedly, controllers can be left connected. Is there any way to disconnect these controllers? I noticed I can't restart my computer either so I have to force shutdown every time, but this does disconnect the controllers on restart.