Class TDGEGamepadManager
Unit
Declaration
type TDGEGamepadManager = class(TComponent)
Description
Gamepad manager component
Attributes
- ComponentPlatformsAttribute(pfidWindows or pfidOSX or pfidLinux or pfidAndroid or pfidiOS)
Hierarchy
- TObject
- TPersistent
- TComponent
- TDGEGamepadManager
Overview
Methods
|  | function GetGamepad(const AID: integer): TGamepadDevice; | 
|  | function GamepadCount: integer; | 
|  | function ConnectedGamepadCount: integer; | 
|  | constructor Create(AOwner: TComponent); override; | 
|  | destructor Destroy; override; | 
|  | procedure DoNewGamepadDetected(const AGamepadID: integer); | 
|  | procedure DoLostGamepad(const AGamepadID: integer); | 
|  | procedure DoGamepadDirectionPadChange(const AGamepadID: integer; const AValue: TJoystickDPad); | 
|  | procedure DoGamepadAxesChange(const AGamepadID: integer; const AAxe: TJoystickAxes; const AValue: single); | 
|  | procedure DoGamepadButtonDown(const AGamepadID: integer; const AButton: TJoystickButtons); | 
|  | procedure DoGamepadButtonUp(const AGamepadID: integer; const AButton: TJoystickButtons); | 
Properties
|  | property IsSupported: boolean read GetIsSupported; | 
|  | property TagObject: TObject read FTagObject write SetTagObject default nil; | 
|  | property SynchronizedEvents: boolean read FSynchronizedEvents
      write SetSynchronizedEvents default false; | 
|  | property Enabled: boolean read FEnabled write SetEnabled default true; | 
|  | property OnNewGamepadDetected: TOnNewGamepadDetected
      read FOnNewGamepadDetected write SetOnNewGamepadDetected; | 
|  | property OnGamepadLost: TOnGamepadLost read FOnGamepadLost
      write SetOnGamepadLost; | 
|  | property OnButtonUp: TOnGamepadButtonUp read FOnGamepadButtonUp
      write SetOnGamepadButtonUp; | 
|  | property OnButtonDown: TOnGamepadButtonDown read FOnGamepadButtonDown
      write SetOnGamepadButtonDown; | 
|  | property OnAxesChange: TOnGamepadAxesChange read FOnGamepadAxesChange
      write SetOnGamepadAxesChange; | 
|  | property OnDirectionPadChange: TOnGamepadDirectionPadChange
      read FOnGamepadDirectionPadChange write SetOnGamepadDirectionPadChange; | 
|  | 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 GetGamepad(const AID: integer): TGamepadDevice; | 
| Return the gamepad data class | |
|  | function GamepadCount: integer; | 
| Count the detected gamepads number (detected or declared in the OS depending on the platform) | |
|  | function ConnectedGamepadCount: integer; | 
| Return the connected gamepads number | |
|  | constructor Create(AOwner: TComponent); override; | 
|  | destructor Destroy; override; | 
|  | procedure DoNewGamepadDetected(const AGamepadID: integer); | 
|  | procedure DoLostGamepad(const AGamepadID: integer); | 
|  | procedure DoGamepadDirectionPadChange(const AGamepadID: integer; const AValue: TJoystickDPad); | 
|  | procedure DoGamepadAxesChange(const AGamepadID: integer; const AAxe: TJoystickAxes; const AValue: single); | 
|  | procedure DoGamepadButtonDown(const AGamepadID: integer; const AButton: TJoystickButtons); | 
|  | procedure DoGamepadButtonUp(const AGamepadID: integer; const AButton: TJoystickButtons); | 
Properties
|  | property IsSupported: boolean read GetIsSupported; | 
|  | property TagObject: TObject read FTagObject write SetTagObject default nil; | 
| TagObject property "in case of" not used in this class | |
|  | property SynchronizedEvents: boolean read FSynchronizedEvents
      write SetSynchronizedEvents default false; | 
| Execute events in main thread or in the thread used by the gamepad manager | |
|  | property Enabled: boolean read FEnabled write SetEnabled default true; | 
|  | property OnNewGamepadDetected: TOnNewGamepadDetected
      read FOnNewGamepadDetected write SetOnNewGamepadDetected; | 
|  | property OnGamepadLost: TOnGamepadLost read FOnGamepadLost
      write SetOnGamepadLost; | 
|  | property OnButtonUp: TOnGamepadButtonUp read FOnGamepadButtonUp
      write SetOnGamepadButtonUp; | 
|  | property OnButtonDown: TOnGamepadButtonDown read FOnGamepadButtonDown
      write SetOnGamepadButtonDown; | 
|  | property OnAxesChange: TOnGamepadAxesChange read FOnGamepadAxesChange
      write SetOnGamepadAxesChange; | 
|  | property OnDirectionPadChange: TOnGamepadDirectionPadChange
      read FOnGamepadDirectionPadChange write SetOnGamepadDirectionPadChange; | 
|  | 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.