Class TDGEGamepadManager

Unit

Declaration

type TDGEGamepadManager = class(TComponent)

Description

Gamepad manager component

Attributes
ComponentPlatformsAttribute(pfidWindows or pfidOSX or pfidLinux or pfidAndroid or pfidiOS)

Hierarchy

Overview

Methods

Public function GetGamepad(const AID: integer): TGamepadDevice;
Public function GamepadCount: integer;
Public function ConnectedGamepadCount: integer;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure DoNewGamepadDetected(const AGamepadID: integer);
Public procedure DoLostGamepad(const AGamepadID: integer);
Public procedure DoGamepadDirectionPadChange(const AGamepadID: integer; const AValue: TJoystickDPad);
Public procedure DoGamepadAxesChange(const AGamepadID: integer; const AAxe: TJoystickAxes; const AValue: single);
Public procedure DoGamepadButtonDown(const AGamepadID: integer; const AButton: TJoystickButtons);
Public procedure DoGamepadButtonUp(const AGamepadID: integer; const AButton: TJoystickButtons);

Properties

Public property IsSupported: boolean read GetIsSupported;
Public property TagObject: TObject read FTagObject write SetTagObject default nil;
Published property SynchronizedEvents: boolean read FSynchronizedEvents write SetSynchronizedEvents default false;
Published property Enabled: boolean read FEnabled write SetEnabled default true;
Published property OnNewGamepadDetected: TOnNewGamepadDetected read FOnNewGamepadDetected write SetOnNewGamepadDetected;
Published property OnGamepadLost: TOnGamepadLost read FOnGamepadLost write SetOnGamepadLost;
Published property OnButtonUp: TOnGamepadButtonUp read FOnGamepadButtonUp write SetOnGamepadButtonUp;
Published property OnButtonDown: TOnGamepadButtonDown read FOnGamepadButtonDown write SetOnGamepadButtonDown;
Published property OnAxesChange: TOnGamepadAxesChange read FOnGamepadAxesChange write SetOnGamepadAxesChange;
Published property OnDirectionPadChange: TOnGamepadDirectionPadChange read FOnGamepadDirectionPadChange write SetOnGamepadDirectionPadChange;
Published property Tag;
Published property TagBool: boolean read FTagBool write SetTagBool default false;
Published property TagFloat: single read FTagFloat write SetTagFloat;
Published property TagString: string read FTagString write SetTagString;

Description

Methods

Public function GetGamepad(const AID: integer): TGamepadDevice;

Return the gamepad data class

Public function GamepadCount: integer;

Count the detected gamepads number (detected or declared in the OS depending on the platform)

Public function ConnectedGamepadCount: integer;

Return the connected gamepads number

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public procedure DoNewGamepadDetected(const AGamepadID: integer);

This item has no description.

Public procedure DoLostGamepad(const AGamepadID: integer);

This item has no description.

Public procedure DoGamepadDirectionPadChange(const AGamepadID: integer; const AValue: TJoystickDPad);

This item has no description.

Public procedure DoGamepadAxesChange(const AGamepadID: integer; const AAxe: TJoystickAxes; const AValue: single);

This item has no description.

Public procedure DoGamepadButtonDown(const AGamepadID: integer; const AButton: TJoystickButtons);

This item has no description.

Public procedure DoGamepadButtonUp(const AGamepadID: integer; const AButton: TJoystickButtons);

This item has no description.

Properties

Public property IsSupported: boolean read GetIsSupported;

This item has no description.

Public property TagObject: TObject read FTagObject write SetTagObject default nil;

TagObject property "in case of" not used in this class

Published property SynchronizedEvents: boolean read FSynchronizedEvents write SetSynchronizedEvents default false;

Execute events in main thread or in the thread used by the gamepad manager

Published property Enabled: boolean read FEnabled write SetEnabled default true;

This item has no description.

Published property OnNewGamepadDetected: TOnNewGamepadDetected read FOnNewGamepadDetected write SetOnNewGamepadDetected;

This item has no description.

Published property OnGamepadLost: TOnGamepadLost read FOnGamepadLost write SetOnGamepadLost;

This item has no description.

Published property OnButtonUp: TOnGamepadButtonUp read FOnGamepadButtonUp write SetOnGamepadButtonUp;

This item has no description.

Published property OnButtonDown: TOnGamepadButtonDown read FOnGamepadButtonDown write SetOnGamepadButtonDown;

This item has no description.

Published property OnAxesChange: TOnGamepadAxesChange read FOnGamepadAxesChange write SetOnGamepadAxesChange;

This item has no description.

Published property OnDirectionPadChange: TOnGamepadDirectionPadChange read FOnGamepadDirectionPadChange write SetOnGamepadDirectionPadChange;

This item has no description.

Published property Tag;

Tag property "in case of" not used in this class

Published property TagBool: boolean read FTagBool write SetTagBool default false;

TagBool property "in case of" not used in this class

Published property TagFloat: single read FTagFloat write SetTagFloat;

TagFloat property "in case of" not used in this class

Published property TagString: string read FTagString write SetTagString;

TagString property "in case of" not used in this class

Delphi Game Engine (c) 2021-2026 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 1.0.2.