Class TDGEGamepad

Unit

Declaration

type TDGEGamepad = class(TComponent)

Description

Gamepad component

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

Hierarchy

Overview

Methods

Protected function getGamepadData: TGamepadDevice;
Protected procedure DoAxeChanged(const AAxeID: integer);
Protected procedure DoButtonChanged(const AButtonID: integer);
Protected procedure DoDirectionPadChanged;
Protected procedure DoLost;
Public constructor Create(AOwner: TComponent); override;

Properties

Public property IsSupported: boolean read GetIsSupported;
Public property isConnected: boolean read GetIsConnected;
Public property hasDPad: boolean read FhasDPAD;
Public property Buttons[constButtonID:TJoystickButtons]: boolean read GetButtons;
Public property Axes[constAxeID:TJoystickAxes]: single read GetAxes;
Public property DPad: TJoystickDPad read getDPad;
Public property TagObject: TObject read FTagObject write SetTagObject default nil;
Published property ID: integer read FID write SetID default -1;
Published property Enabled: boolean read FEnabled write SetEnabled default true;
Published property SynchronizedEvents: boolean read FSynchronizedEvents write SetSynchronizedEvents default false;
Published property OnButtonUp: TOnGamepadButtonUp read FOnButtonUp write SetOnButtonUp;
Published property OnButtonDown: TOnGamepadButtonDown read FOnButtonDown write SetOnButtonDown;
Published property OnAxesChange: TOnGamepadAxesChange read FOnAxesChange write SetOnAxesChange;
Published property OnDirectionPadChange: TOnGamepadDirectionPadChange read FOnDirectionPadChange write SetOnDirectionPadChange;
Published property OnLost: TOnGamepadLost read FOnLost write SetOnLost;
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

Protected function getGamepadData: TGamepadDevice;
 
Protected procedure DoAxeChanged(const AAxeID: integer);
 
Protected procedure DoButtonChanged(const AButtonID: integer);
 
Protected procedure DoDirectionPadChanged;
 
Protected procedure DoLost;
 
Public constructor Create(AOwner: TComponent); override;
 

Properties

Public property IsSupported: boolean read GetIsSupported;
 
Public property isConnected: boolean read GetIsConnected;
 
Public property hasDPad: boolean read FhasDPAD;
 
Public property Buttons[constButtonID:TJoystickButtons]: boolean read GetButtons;
 
Public property Axes[constAxeID:TJoystickAxes]: single read GetAxes;
 
Public property DPad: TJoystickDPad read getDPad;
 
Public property TagObject: TObject read FTagObject write SetTagObject default nil;

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

Published property ID: integer read FID write SetID default -1;
 
Published property Enabled: boolean read FEnabled write SetEnabled default true;
 
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 OnButtonUp: TOnGamepadButtonUp read FOnButtonUp write SetOnButtonUp;
 
Published property OnButtonDown: TOnGamepadButtonDown read FOnButtonDown write SetOnButtonDown;
 
Published property OnAxesChange: TOnGamepadAxesChange read FOnAxesChange write SetOnAxesChange;
 
Published property OnDirectionPadChange: TOnGamepadDirectionPadChange read FOnDirectionPadChange write SetOnDirectionPadChange;
 
Published property OnLost: TOnGamepadLost read FOnLost write SetOnLost;
 
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-2025 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 0.16.0.