From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )

IntegerValue = aGameInputElement.Value

Supported for all project types and targets.

The current value of this element.


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

Var i, maxi As Integer
Var device As GameInputDevice

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 + Str(device.Element(i).Value)
End If