GameInputDevice.Connected
From Xojo Documentation
Read-Only Property (As Boolean )
This property is only available on macOS and Windows platforms. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform. |
If True, the device is currently connected. False indicates that the device is not connected.
Example
This example checks to see that the selected device in a ListBox is connected.