Record TGameControllerPressRelease

Hierarchy
Methods
Properties

Unit

Declaration

type TGameControllerPressRelease = record

Description

Used when input indicates press / release of a game controller button. This is used in TInputPressRelease.EventType = itGameController.

Source: src/ui/castlekeysmouse.pas (line 765).

Overview

Fields

Public Button: TGameControllerButton;
Public Meaning: TGameControllerButtonMeaning;
Public Caption: String;
Public ControllerIndex: Integer;

Description

Fields

Public Button: TGameControllerButton;

Button that was pressed or released.

Source: src/ui/castlekeysmouse.pas (line 767).

Public Meaning: TGameControllerButtonMeaning;

Meaning commonly assigned to this button, like gmConfirm or gmCancel. This is gmNone if the button does not have any meaning expressed as TGameControllerButtonMeaning.

Source: src/ui/castlekeysmouse.pas (line 772).

Public Caption: String;

Caption of the button, like 'A', 'B', 'X', 'Y', 'Left Trigger', 'Right Trigger'. Never empty for buttons that can be generated by given game controller. For buttons that have different names depending on the game controller, like "face buttons" (A, B, X, Y, square triangle circle cross), this caption depends on the game controller type.

Source: src/ui/castlekeysmouse.pas (line 780).

Public ControllerIndex: Integer;

Controller on which this button was pressed or released. This is an index to the Controllers array.

Source: src/ui/castlekeysmouse.pas (line 784).


Generated by PasDoc 0.17.0.snapshot.