TJoystick Info Record
Joystick/gamepad controller datas
The TJoystickInfo type exposes the following members.
Show:
Name | Description | |
---|---|---|
![]() | initButtonsToJoystickButtons | Initialize the buttons list depending on TJoystickButtons list |
![]() | isPressed | Check if a button is pressed by it's name (for compatible platforms) |
![]() | setPressed | Used by platforms compatibles to set pressed buttons |
Show:
Name | Description | |
---|---|---|
![]() | 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 |