GameInputElement.Device

From Xojo Documentation

Read-Only Property (As GameInputDevice )


GameInputDeviceValue = aGameInputElement.Device

Supported for all project types and targets.

The device that owns this input element.

Example

This example displays the name of the device that owns the selected element.

Dim i, maxi As Integer
Dim device As GameInputDevice
Dim deviceElement As GameInputDevice
ElementPop.DeleteAllRows
device = mManager.Device(Listbox1.ListIndex) // selected device in Device popup
deviceElement = device.Element(Listbox1.ListIndex).Device
MsgBox(deviceElement.Name)