Record TJoystickInfo
Unit
Declaration
type TJoystickInfo = record
Description
Joystick/gamepad controller datas
Overview
Fields
![]() |
Axes: array of single; |
![]() |
Buttons: array of boolean; |
![]() |
PressedButtons: array of TButtonID; |
![]() |
DPad: word; |
Methods
![]() |
function isPressed(Button: TJoystickButtons): boolean; |
![]() |
procedure setPressed(Button: TJoystickButtons; isPressed: boolean); |
![]() |
procedure initButtonsToJoystickButtons; |
Description
Fields
![]() |
Buttons: array of boolean; |
List of all available buttons on this controller. Value is true if the button is pressed, false if not |
![]() |
PressedButtons: array of TButtonID; |
List of pressed buttons for this controller |
![]() |
DPad: word; |
DPad value between 0 (top) and 359, for center, the value is higher than 359 |
Methods
![]() |
function isPressed(Button: TJoystickButtons): boolean; |
Check if a button is pressed by it's name (for compatible platforms) |
![]() |
procedure setPressed(Button: TJoystickButtons; isPressed: boolean); |
Used by platforms compatibles to set pressed buttons |
![]() |
procedure initButtonsToJoystickButtons; |
Initialize the buttons list depending on TJoystickButtons list |
Generated by PasDoc 0.16.0.