![]() |
NDEVR
API Documentation
|
Represents an analog trigger input on a controller. More...
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, fltp08 > | icon_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. | |
Represents an analog trigger input on a controller.
Definition at line 89 of file ControllerInterface.h.
|
inline |
Constructs a ControlTrigger with the given identifier.
| [in] | id | The unique identifier for this trigger. |
Definition at line 95 of file ControllerInterface.h.
References ControllerInterface::ControllerInput::ControllerInput(), and ControllerInterface::ControllerInput::id.
Constructs a ControlTrigger with the given identifier and depression amount.
| [in] | id | The unique identifier for this trigger. |
| [in] | percent | The 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.