Class TGamepadDevice
Unit
Declaration
type TGamepadDevice = class(TInterfacedObject)
Description
Gamepad class to access data from each gamepad detected on the system
Hierarchy
- TInterfacedObject
- TGamepadDevice
Overview
Methods
![]() |
procedure SetNewJoystickInfo(const NewJoystickInfo: TJoystickInfo); |
![]() |
procedure DoAxeChanged(const AAxeID: integer); |
![]() |
procedure DoButtonChanged(const AButtonID: integer); |
![]() |
procedure DoDirectionPadChanged; |
![]() |
procedure DoLost; |
![]() |
procedure RegisterGamePadComponent(const Gamepad: TDGEGamepad); |
![]() |
procedure UnRegisterGamePadComponent(const Gamepad: TDGEGamepad); |
![]() |
constructor Create(const AID: integer); |
![]() |
destructor Destroy; override; |
Properties
![]() |
property ID: integer read FID; |
![]() |
property IsSupported: boolean read GetIsSupported; |
![]() |
property Enabled: boolean read FEnabled write SetEnabled; |
![]() |
property isConnected: boolean read GetIsConnected write SetIsConnected; |
![]() |
property hasDPad: boolean read FhasDPAD; |
![]() |
property Buttons[constButtonID:TJoystickButtons]: boolean read GetButtons; |
![]() |
property Axes[constAxeID:TJoystickAxes]: single read GetAxes; |
![]() |
property DPad: TJoystickDPad read getDPad; |
![]() |
property SynchronizedEvents: boolean read FSynchronizedEvents
write SetSynchronizedEvents; |
![]() |
property OnGamepadButtonUp: TOnGamepadButtonUp read FOnButtonUp
write SetOnButtonUp; |
![]() |
property OnGamepadButtonDown: TOnGamepadButtonDown read FOnButtonDown
write SetOnButtonDown; |
![]() |
property OnGamepadAxesChange: TOnGamepadAxesChange read FOnAxesChange
write SetOnAxesChange; |
![]() |
property OnGamepadDirectionPadChange: TOnGamepadDirectionPadChange
read FOnDirectionPadChange write SetOnDirectionPadChange; |
![]() |
property OnGamepadLost: TOnGamepadLost read FOnLost write SetOnLost; |
![]() |
property Tag: integer read FTag write SetTag; |
![]() |
property TagBool: boolean read FTagBool write SetTagBool; |
![]() |
property TagFloat: single read FTagFloat write SetTagFloat; |
![]() |
property TagObject: TObject read FTagObject write SetTagObject; |
![]() |
property TagString: string read FTagString write SetTagString; |
Description
Methods
![]() |
procedure SetNewJoystickInfo(const NewJoystickInfo: TJoystickInfo); |
![]() |
procedure DoAxeChanged(const AAxeID: integer); |
![]() |
procedure DoButtonChanged(const AButtonID: integer); |
![]() |
procedure DoDirectionPadChanged; |
![]() |
procedure DoLost; |
![]() |
procedure RegisterGamePadComponent(const Gamepad: TDGEGamepad); |
![]() |
procedure UnRegisterGamePadComponent(const Gamepad: TDGEGamepad); |
![]() |
constructor Create(const AID: integer); |
![]() |
destructor Destroy; override; |
Properties
![]() |
property ID: integer read FID; |
![]() |
property IsSupported: boolean read GetIsSupported; |
![]() |
property Enabled: boolean read FEnabled write SetEnabled; |
![]() |
property isConnected: boolean read GetIsConnected write SetIsConnected; |
![]() |
property hasDPad: boolean read FhasDPAD; |
![]() |
property Buttons[constButtonID:TJoystickButtons]: boolean read GetButtons; |
![]() |
property Axes[constAxeID:TJoystickAxes]: single read GetAxes; |
![]() |
property DPad: TJoystickDPad read getDPad; |
![]() |
property SynchronizedEvents: boolean read FSynchronizedEvents
write SetSynchronizedEvents; |
Execute events in main thread or in the thread used by the gamepad manager |
![]() |
property OnGamepadButtonUp: TOnGamepadButtonUp read FOnButtonUp
write SetOnButtonUp; |
![]() |
property OnGamepadButtonDown: TOnGamepadButtonDown read FOnButtonDown
write SetOnButtonDown; |
![]() |
property OnGamepadAxesChange: TOnGamepadAxesChange read FOnAxesChange
write SetOnAxesChange; |
![]() |
property OnGamepadDirectionPadChange: TOnGamepadDirectionPadChange
read FOnDirectionPadChange write SetOnDirectionPadChange; |
![]() |
property OnGamepadLost: TOnGamepadLost read FOnLost write SetOnLost; |
![]() |
property Tag: integer read FTag write SetTag; |
Tag property "in case of" not used in this class |
![]() |
property TagBool: boolean read FTagBool write SetTagBool; |
TagBool property "in case of" not used in this class |
![]() |
property TagFloat: single read FTagFloat write SetTagFloat; |
TagFloat property "in case of" not used in this class |
![]() |
property TagObject: TObject read FTagObject write SetTagObject; |
TagObject property "in case of" not used in this class |
![]() |
property TagString: string read FTagString write SetTagString; |
TagString property "in case of" not used in this class |
Generated by PasDoc 0.16.0.