Class TDGEGamepadDetected

Unit

Declaration

type TDGEGamepadDetected = class(TComponent)

Description

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

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure AfterConstruction; override;
Public procedure Test(const OnOff: boolean = true);

Properties

Public property TagObject: TObject read FTagObject write SetTagObject default nil;
Published property Enabled: boolean read FEnabled write SetEnabled default true;
Published property Width: integer read FWidth write SetWidth default 64;
Published property Height: integer read FHeight write SetHeight default 64;
Published property MarginBottom: integer read FMarginBottom write SetMarginBottom default 10;
Published property MarginLeft: integer read FMarginLeft write SetMarginLeft default 10;
Published property MarginRight: integer read FMarginRight write SetMarginRight default 10;
Published property MarginTop: integer read FMarginTop write SetMarginTop default 10;
Published property Position: TDGEGamepadDetectedPosition read FPosition write SetPosition default TDGEGamepadDetectedPosition.TopRight;
Published property Direction: TDGEGamepadDetectedDirection read FDirection write SetDirection default TDGEGamepadDetectedDirection.Vertical;
Published property Duration: single read FDuration write SetDuration;
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 constructor Create(AOwner: TComponent); override;
 
Public procedure AfterConstruction; override;
 
Public procedure Test(const OnOff: boolean = true);

Use Test() method to simulate a game controller detected or lost event

Properties

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

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

Published property Enabled: boolean read FEnabled write SetEnabled default true;
 
Published property Width: integer read FWidth write SetWidth default 64;

Width of the GamepadOnOff displayed picture

Published property Height: integer read FHeight write SetHeight default 64;

Height of the GamepadOnOff displayed picture

Published property MarginBottom: integer read FMarginBottom write SetMarginBottom default 10;

Margin between the game controller images and bottom of the form.

Published property MarginLeft: integer read FMarginLeft write SetMarginLeft default 10;

Margin between the game controller images and left of the form.

Published property MarginRight: integer read FMarginRight write SetMarginRight default 10;

Margin between the game controller images and right of the form.

Published property MarginTop: integer read FMarginTop write SetMarginTop default 10;

Margin between the game controller images and top of the form.

Published property Position: TDGEGamepadDetectedPosition read FPosition write SetPosition default TDGEGamepadDetectedPosition.TopRight;

Where you want to have a game controller image when one is detected or lost

Published property Direction: TDGEGamepadDetectedDirection read FDirection write SetDirection default TDGEGamepadDetectedDirection.Vertical;

Used when more than one game controller event (detected/lost) is visible

Only used in FireMonkey projects.

Published property Duration: single read FDuration write SetDuration;

Display duration in seconds

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.