GameInputElement.Name

From Xojo Documentation

Read-Only Property (As String )


StringValue = aGameInputElement.Name

Supported for all project types and targets.

The human-readable name of the input element.

Example

This example loads the list of elements belonging to the selected device into a PopupMenu named ElementPop.

Var i, maxi As Integer
Var device As GameInputDevice

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