Class TJoysticks
Unit
Declaration
type TJoysticks = class(TObject)
Description
TJoysticks
is a class for joysticks and gamepads management
Hierarchy
- TObject
- TJoysticks
Overview
Methods
procedure DoChange; |
|
constructor Create; |
|
destructor Destroy; override; |
|
function GetInfo( JoyID : Byte ) : PJoyInfo; |
|
function AxisPos( JoyID, Axis : Byte ): Single; |
|
function Down( JoyID, Button : Byte ): Boolean; |
|
function Up( JoyID, Button : Byte ): Boolean; |
|
function Press( JoyID, Button : Byte ): Boolean; |
|
procedure ClearState; |
|
function GetJoy(const JoyID: Integer): TJoystick; deprecated 'use Joysticks[xxx] instead of Joysticks.GetJoy(xxx)'; |
|
function JoyCount: Integer; deprecated 'use Count'; |
|
function Count: Integer; |
|
procedure Initialize; |
Properties
property OnAxisMove: TOnJoyAxisMove read FOnAxisMove write FOnAxisMove; |
|
property OnButtonDown: TOnJoyButtonEvent read FOnButtonDown write FOnButtonDown; |
|
property OnButtonUp: TOnJoyButtonEvent read FOnButtonUp write FOnButtonUp; |
|
property OnButtonPress: TOnJoyButtonEvent read FOnButtonPress write FOnButtonPress; |
|
property Items[const Index: Integer]: TJoystick read GetItems; |
|
property Initialized: Boolean read FInitialized; |
|
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
|
property OnDisconnect: TSimpleNotifyEvent read FOnDisconnect write FOnDisconnect; |
|
property OnConnect: TSimpleNotifyEvent read FOnConnect write FOnConnect; |
Description
Methods
procedure DoChange; |
|
See OnChange. |
constructor Create; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function GetInfo( JoyID : Byte ) : PJoyInfo; |
|
This item has no description. |
function AxisPos( JoyID, Axis : Byte ): Single; |
|
This item has no description. |
function Down( JoyID, Button : Byte ): Boolean; |
|
This item has no description. |
function Up( JoyID, Button : Byte ): Boolean; |
|
This item has no description. |
function Press( JoyID, Button : Byte ): Boolean; |
|
This item has no description. |
procedure ClearState; |
|
This item has no description. |
function GetJoy(const JoyID: Integer): TJoystick; deprecated 'use Joysticks[xxx] instead of Joysticks.GetJoy(xxx)'; |
|
Warning: this symbol is deprecated: use Joysticks[xxx] instead of Joysticks.GetJoy(xxx) This item has no description. |
function JoyCount: Integer; deprecated 'use Count'; |
|
Warning: this symbol is deprecated: use Count This item has no description. |
function Count: Integer; |
|
This item has no description. |
Properties
property OnAxisMove: TOnJoyAxisMove read FOnAxisMove write FOnAxisMove; |
|
This item has no description. |
property OnButtonDown: TOnJoyButtonEvent read FOnButtonDown write FOnButtonDown; |
|
This item has no description. |
property OnButtonUp: TOnJoyButtonEvent read FOnButtonUp write FOnButtonUp; |
|
This item has no description. |
property OnButtonPress: TOnJoyButtonEvent read FOnButtonPress write FOnButtonPress; |
|
This item has no description. |
property Items[const Index: Integer]: TJoystick read GetItems; |
|
This item has no description. |
property Initialized: Boolean read FInitialized; |
|
This item has no description. |
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
|
Called after TJoystick instances on the list change (some are added, destroyed). In case of some backends, this is only called at the end of Initialize, but it may be called in other cases (e.g. "explicit" joystick backend, used by Nintendo Switch, may call this at any moment). |
property OnDisconnect: TSimpleNotifyEvent read FOnDisconnect write FOnDisconnect; |
|
Called in case a previously initalized joystick has been disconnected. |
property OnConnect: TSimpleNotifyEvent read FOnConnect write FOnConnect; |
|
Called in case a joystick has been connected to the system. |
Generated by PasDoc 0.16.0-snapshot.