From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
| This class is only available on macOS and Windows platforms.
For cross-platform compatibility, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this class on an incompatible platform.
| This class is supported on Desktop.
Use ＃If...＃Endif with the Target... constants to ensure you only use this class where it is supported.
Manages an element of a GameInputDevice. Not supported on Linux.
A GameInputElement is a control on an input device used for gaming (or general user input via the keyboard and mouse). For example, the Fire button on a joystick control is an element, as are the standard mouse button and each of the keys on a keyboard. The Element method of the GameInputDevice class give you access to the elements of a specified device. You use the WaitForElement method of the GameInputManager class to detect input from an element.
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
See also the examples for GameInputManager.