GameInputDevice.Index

From Xojo Documentation

Read-Only Property (As Integer )


IntegerValue = aGameInputDevice.Index

Supported for all project types and targets.

The index of this device in the GameInputManager.

Example

This example reports the number of the selected GameInputManager in a ListBox.

Var i, maxi As Integer
Var device As GameInputDevice

device = mManager.Device(ListBox1.SelectedIndex)

If device.Connected Then
MessageBox(device.Index.ToString + " is connected.")
Else
MessageBox("not connected.")
End If