Class TInputShortcutBindingControllerButton
Unit
Declaration
type TInputShortcutBindingControllerButton = class(TInputShortcutBinding)
Description
Trigger TInputShortcut by a game controller button. For example, trigger action when user clicks "A" or "right bumper".
Source: ui/castleinputs.pas (line 178).
Hierarchy
- TObject
- TPersistent
- TComponent
- TInputShortcutBinding
- TInputShortcutBindingControllerButton
Overview
Methods
| Public | constructor Create(AOwner: TComponent); override; |
| Public | function IsPressed(const Container: TCastleContainer; out HowMuch: Single): Boolean; override; |
| Public | function IsEvent(const Event: TInputPressRelease): Boolean; override; |
| Public | function ToString: String; override; |
Properties
| Public | property Button: TGameControllerButton read FButton write FButton
default gbNorth; |
| Public | property ControllerIndex: Integer read FControllerIndex write FControllerIndex
default -1; |
Description
Methods
| Public | constructor Create(AOwner: TComponent); override; |
|
This item has no description. | |
| Public | 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 | |
| Public | function IsEvent(const Event: TInputPressRelease): Boolean; override; |
|
This item has no description. Showing description inherited from TInputShortcutBinding.IsEvent. Does receiving TCastleUserInterface press with this Event means that this input has been just pressed. | |
| Public | function ToString: String; override; |
|
This item has no description. Showing description inherited from TInputShortcutBinding.ToString. Description of the binding. | |
Properties
| Public | property Button: TGameControllerButton read FButton write FButton
default gbNorth; |
|
Which game controller button is taken into account. | |
| Public | property ControllerIndex: Integer read FControllerIndex write FControllerIndex
default -1; |
|
Which game controller is taken into account. Value -1 (default) means to look at all controllers and choose maximum. | |
Generated by PasDoc 0.17.0.snapshot.