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.

Var i, maxi As Integer
Var device As GameInputDevice
Var deviceElement As GameInputDevice
ElementPop.RemoveAllRows
device = mManager.Device(Listbox1.SelectedRowIndex) // selected device in Device popup
deviceElement = device.Element(Listbox1.SelectedRowIndex).Device
MessageBox(deviceElement.Name)