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".

Hierarchy

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 True, HowMuch is set to a value between 0.0 and 1.0 that says "how much" the input is pressed (e.g. with what pressure is the game controller axis pressed). If returns False, HowMuch is always 0.0.

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.16.0-snapshot.