TJoystickInfo Record
Definition
Joystick/gamepad controller datas
Delphi
type TJoystickInfo = record
Methods
| initButtonsToJoystickButtons |
Initialize the buttons list depending on TJoystickButtons list |
| isPressed(TJoystickButtons) |
Check if a button is pressed by it's name (for compatible platforms) |
| setPressed(TJoystickButtons, Boolean) |
Used by platforms compatibles to set pressed buttons |
Fields
| Axes |
Values for each axes managed by the joystick 0 => X, 1 => Y, 2 => Z, 3 => R, 4 => U, 5 => V Values between -1 and 1. -1 means left, 0 means center, 1 means right can be around the real value and not egal the values, try round() |
| Buttons |
List of all available buttons on this controller. Value is true if the button is pressed, false if not |
| DPad |
DPad value between 0 (top) and 359, for center, the value is higher than 359 |
| PressedButtons |
List of pressed buttons for this controller |