Class TInputShortcutBindingControllerAxis
Unit
Declaration
type TInputShortcutBindingControllerAxis = class(TInputShortcutBinding)
Description
Trigger TInputShortcut by a game controller axis. For example, trigger action when user moves the left stick of the controller. Right now, this only causes IsPressed (so axis can be detected as pressed) and never reacts tp IsEvent (since axis doesn't report there).
Hierarchy
- TObject
- TPersistent
- TComponent
- TInputShortcutBinding
- TInputShortcutBindingControllerAxis
Overview
Fields
![]() |
nested const DefaultDeadZone = 0.1; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
function IsPressed(const Container: TCastleContainer; out HowMuch: Single): Boolean; override; |
![]() |
function ToString: String; override; |
Properties
![]() |
property Axis: TGameControllerAxis read FAxis write FAxis default gaLeftStick; |
![]() |
property Positive: Boolean read FPositive write FPositive default true; |
![]() |
property Coord: T2DAxis read FCoord write FCoord default 0; |
![]() |
property DeadZone: Single read FDeadZone write FDeadZone
default DefaultDeadZone; |
![]() |
property ControllerIndex: Integer read FControllerIndex write FControllerIndex default -1; |
Description
Fields
![]() |
nested const DefaultDeadZone = 0.1; |
This item has no description. |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
This item has no description. |
![]() |
function IsPressed(const Container: TCastleContainer; out HowMuch: Single): Boolean; override; |
This item has no description. Showing description inherited from TInputShortcutBinding.IsPressed.
Is the input currently pressed. If returns |
![]() |
function ToString: String; override; |
function IsEvent(const Event: TInputPressRelease): Boolean; override; |
Properties
![]() |
property Axis: TGameControllerAxis read FAxis write FAxis default gaLeftStick; |
Which game contoller axis is taken into account. |
![]() |
property Positive: Boolean read FPositive write FPositive default true; |
Whether the posititive or negative value of the axis causes the pressed state. |
![]() |
property Coord: T2DAxis read FCoord write FCoord default 0; |
Which axis coordinate is taken into account.
|
![]() |
property DeadZone: Single read FDeadZone write FDeadZone
default DefaultDeadZone; |
Values of the axis smaller (or equal) than this |
Generated by PasDoc 0.16.0-snapshot.