Rescan for devices?

Official forum for open source FreePIE discussion and development.
Post Reply
animaal
One Eyed Hopeful
Posts: 1
Joined: Sat Sep 22, 2018 7:31 am

Rescan for devices?

Post 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?
Post Reply

Return to “FreePIE”