GameInputDevice.Connected

From Xojo Documentation

Read-Only Property (As Boolean )


BooleanValue = aGameInputDevice.Connected

Supported for all project types and targets.

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.

Var i, maxi As Integer
Var device As GameInputDevice

device = mManager.Device(Listbox1.SelectedRowIndex)

If device.Connected Then
MessageBox("connected")
Else
MessageBox("not connected")
End If