Class TInputShortcutBinding

Unit

Declaration

type TInputShortcutBinding = class(TComponent)

Description

Abstract input binding, like a given key / mouse button / game contoller press. The TInputShortcut can be triggered by one or more of these.

Source: ui/castleinputs.pas (line 83).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TInputShortcutBinding

Overview

Methods

Public function IsPressed(const Container: TCastleContainer; out HowMuch: Single): Boolean; virtual;
Public function IsEvent(const Event: TInputPressRelease): Boolean; virtual;
Public function ToString: String; override;

Description

Methods

Public function IsPressed(const Container: TCastleContainer; out HowMuch: Single): Boolean; virtual;

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.

Source: ui/castleinputs.pas (line 91).

Public function IsEvent(const Event: TInputPressRelease): Boolean; virtual;

Does receiving TCastleUserInterface press with this Event means that this input has been just pressed.

Source: ui/castleinputs.pas (line 97).

Public function ToString: String; override;

Description of the binding.

Source: ui/castleinputs.pas (line 100).


Generated by PasDoc 0.17.0.snapshot.