NDEVR
API Documentation
ControllerInterface::ControlTrigger

Represents an analog trigger input on a controller. More...

Inheritance diagram for ControllerInterface::ControlTrigger:
[legend]
Collaboration diagram for ControllerInterface::ControlTrigger:
[legend]

Public Member Functions

 ControlTrigger (const UUID &id)
 Constructs a ControlTrigger with the given identifier.
 ControlTrigger (const UUID &id, fltp08 percent)
 Constructs a ControlTrigger with the given identifier and depression amount.
Public Member Functions inherited from ControllerInterface::ControllerInput
 ControllerInput (UUID id)
 Constructs a ControllerInput with the given unique identifier.

Public Attributes

fltp08 percent = 0.0
 Trigger depression from 0 (released) to 1 (fully pressed).
bool pressed = false
 Whether the trigger is considered pressed (above 50% depression).
Public Attributes inherited from ControllerInterface::ControllerInput
String icon
 Icon resource name for this input.
Bounds< 2, fltp08icon_bounds_location = Constant<Bounds<2, fltp08>>::Invalid
 Position and size of the icon on a controller diagram.
UUID id
 Unique identifier for this input.
TranslatedString name
 Display name of this input.

Detailed Description

Represents an analog trigger input on a controller.

Definition at line 89 of file ControllerInterface.h.

Constructor & Destructor Documentation

◆ ControlTrigger() [1/2]

ControllerInterface::ControlTrigger::ControlTrigger ( const UUID & id)
inline

Constructs a ControlTrigger with the given identifier.

Parameters
[in]idThe unique identifier for this trigger.

Definition at line 95 of file ControllerInterface.h.

References ControllerInterface::ControllerInput::ControllerInput(), and ControllerInterface::ControllerInput::id.

◆ ControlTrigger() [2/2]

ControllerInterface::ControlTrigger::ControlTrigger ( const UUID & id,
fltp08 percent )
inline

Constructs a ControlTrigger with the given identifier and depression amount.

Parameters
[in]idThe unique identifier for this trigger.
[in]percentThe trigger depression from 0 (released) to 1 (fully pressed).

Definition at line 103 of file ControllerInterface.h.

References ControllerInterface::ControllerInput::ControllerInput(), ControllerInterface::ControllerInput::id, percent, and pressed.


The documentation for this struct was generated from the following file: