GameInputElement.Value

From Xojo Documentation

Read-Only Property (As Integer )


IntegerValue = aGameInputElement.Value

Supported for all project types and targets.

The current value of this element.

Example

This example loads the names and values corresponding to the selected device into a PopupMenu named ElementPop.

Dim i, maxi As Integer
Dim device As GameInputDevice

ElementPop.DeleteAllRows
device = mManager.Device(Listbox1.ListIndex) // selected device in Device ListBox
If device <> Nil Then
maxi = device.ElementCount
For i = 0 To maxi - 1
ElementPop.AddRow(Device.Element(i).Name + Str(device.Element(i).Value)
Next
End If