Page 1 of 1

Rescan for devices?

Posted: Sat Sep 22, 2018 7:43 am
by animaal
I have a script that uses a joystick as an input. It works great, but is not tolerant of the device being unplugged and plugged in again.

I.e. the following line only works if the joystick has been connected since the scrip started running.

Code: Select all

x52pro = joystick["X52 Professional H.O.T.A.S."]
It looks like maybe devices are scanned once on initialisation of a script only.

Is there a way to force FreePie to rescan for devices?