Class TJoysticks
Unit
CastleJoysticks
Declaration
type TJoysticks = class(TObject)
Description
TJoysticks is a class for joysticks and gamepads management
Hierarchy
Overview
Methods
 |
constructor Create; |
 |
destructor Destroy; override; |
 |
procedure Poll; |
 |
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: Byte): PJoy; |
Properties
Description
Methods
 |
constructor Create; |
Constructor search for connected devices. If new device will be connected after Create it won't be automatically discovered. In such case TJoysticks have to be destroied and created again.
|
 |
destructor Destroy; override; |
|
 |
procedure Poll; |
Check state of every connected joystick and run event procedures.
|
 |
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: Byte): PJoy; |
|
Properties
 |
property OnAxisMove: TOnJoyAxisMove read FOnAxisMove write FOnAxisMove; |
|
 |
property JoyCount: Integer read FjoyCount; |
|
Generated by PasDoc 0.15.0.
|