GameInputDevice.Element

From Xojo Documentation

Method


GameInputDevice.Element(Index as Integer) As GameInputElement

Supported for all project types and targets.

Returns the GameInputElement specified by Index.

Example

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