GameInputDevice.Name

From Xojo Documentation

Read-Only Property (As String )


StringValue = aGameInputDevice.Name

Supported for all project types and targets.

The human-readable unique name of this device.

Example

This example loads the names of all the devices into a PopupMenu.

Var i, maxi As Integer
Var device As GameInputDevice

ElementPop.RemoveAllRows
device = mManager.Device(Me.SelectedIndex) // selected device in Device popup
If device <> Nil Then
maxi = device.ElementCount
For i = 0 To maxi - 1
ElementPop.AddRow(device.Element(i).Name)
Next
End If

mElement = Nil