Class TDGEGamepad
Unit
Declaration
type TDGEGamepad = class(TComponent)
Description
Gamepad component
Attributes
ComponentPlatformsAttribute
(pfidWindows or pfidOSX or pfidLinux or pfidAndroid or pfidiOS)
Hierarchy
- TObject
- TPersistent
- TComponent
- TDGEGamepad
Overview
Methods
![]() |
function getGamepadData: TGamepadDevice; |
![]() |
procedure DoAxeChanged(const AAxeID: integer); |
![]() |
procedure DoButtonChanged(const AButtonID: integer); |
![]() |
procedure DoDirectionPadChanged; |
![]() |
procedure DoLost; |
![]() |
constructor Create(AOwner: TComponent); override; |
Properties
![]() |
property IsSupported: boolean read GetIsSupported; |
![]() |
property isConnected: boolean read GetIsConnected; |
![]() |
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 TagObject: TObject read FTagObject write SetTagObject default nil; |
![]() |
property ID: integer read FID write SetID default -1; |
![]() |
property Enabled: boolean read FEnabled write SetEnabled default true; |
![]() |
property SynchronizedEvents: boolean read FSynchronizedEvents
write SetSynchronizedEvents default false; |
![]() |
property OnButtonUp: TOnGamepadButtonUp read FOnButtonUp
write SetOnButtonUp; |
![]() |
property OnButtonDown: TOnGamepadButtonDown read FOnButtonDown
write SetOnButtonDown; |
![]() |
property OnAxesChange: TOnGamepadAxesChange read FOnAxesChange
write SetOnAxesChange; |
![]() |
property OnDirectionPadChange: TOnGamepadDirectionPadChange
read FOnDirectionPadChange write SetOnDirectionPadChange; |
![]() |
property OnLost: TOnGamepadLost read FOnLost write SetOnLost; |
![]() |
property Tag; |
![]() |
property TagBool: boolean read FTagBool write SetTagBool default false; |
![]() |
property TagFloat: single read FTagFloat write SetTagFloat; |
![]() |
property TagString: string read FTagString write SetTagString; |
Description
Methods
![]() |
function getGamepadData: TGamepadDevice; |
![]() |
procedure DoAxeChanged(const AAxeID: integer); |
![]() |
procedure DoButtonChanged(const AButtonID: integer); |
![]() |
procedure DoDirectionPadChanged; |
![]() |
procedure DoLost; |
![]() |
constructor Create(AOwner: TComponent); override; |
Properties
![]() |
property IsSupported: boolean read GetIsSupported; |
![]() |
property isConnected: boolean read GetIsConnected; |
![]() |
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 TagObject: TObject read FTagObject write SetTagObject default nil; |
TagObject property "in case of" not used in this class |
![]() |
property ID: integer read FID write SetID default -1; |
![]() |
property Enabled: boolean read FEnabled write SetEnabled default true; |
![]() |
property SynchronizedEvents: boolean read FSynchronizedEvents
write SetSynchronizedEvents default false; |
Execute events in main thread or in the thread used by the gamepad manager |
![]() |
property OnButtonUp: TOnGamepadButtonUp read FOnButtonUp
write SetOnButtonUp; |
![]() |
property OnButtonDown: TOnGamepadButtonDown read FOnButtonDown
write SetOnButtonDown; |
![]() |
property OnAxesChange: TOnGamepadAxesChange read FOnAxesChange
write SetOnAxesChange; |
![]() |
property OnDirectionPadChange: TOnGamepadDirectionPadChange
read FOnDirectionPadChange write SetOnDirectionPadChange; |
![]() |
property OnLost: TOnGamepadLost read FOnLost write SetOnLost; |
![]() |
property Tag; |
Tag property "in case of" not used in this class |
![]() |
property TagBool: boolean read FTagBool write SetTagBool default false; |
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 TagString: string read FTagString write SetTagString; |
TagString property "in case of" not used in this class |
Generated by PasDoc 0.16.0.