Unit CastleJoysticks
Description
Receiving input from joysticks and gamepads.
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables
Description
Functions and Procedures
procedure EnableJoysticks; |
Initialize Joysticks global variable.
|
Types
PJoyInfo = ˆTJoyInfo; |
If defined, the compiled code will have embedded all the variations of basic fonts for the X3D Text node (see [http://castle-engine.sourceforge.net/x3d_implementation_text.php]). This is comfortable (the FontStyle font works, with 3 * 4 font variations, out of the box), but it increases your exe size — possibly without a reason, if you don't use FontStyle X3D node.
Undefine this to conserve around 0.7 MB in exe size. All the Text X3D nodes will use standard sans non-bold, non-italic font.
|
TOnJoyAxisMove = procedure(const Joy: PJoy; const Axis: Byte; const Value: Single) of object; |
Joystick axis move event.
|
TOnJoyButtonEvent = procedure(const Joy: PJoy; const Button: Byte) of object; |
Joystick button action event. Used on button press/up/down.
|
Constants
Variables
Joysticks: TJoysticks; |
Global joystick manager object (singelton). To initialize Joysticks instance run EnableJoysticks procedure
|
Generated by PasDoc 0.15.0.
|