![]() |
NDEVR
API Documentation
|
Represents a digital button input on a controller. More...
Public Member Functions | |
| ControlButton (const UUID &id) | |
| Constructs a ControlButton with the given identifier. | |
| ControlButton (const UUID &id, bool pressed) | |
| Constructs a ControlButton with the given identifier and pressed state. | |
| Public Member Functions inherited from ControllerInterface::ControllerInput | |
| ControllerInput (UUID id) | |
| Constructs a ControllerInput with the given unique identifier. | |
Public Attributes | |
| bool | pressed = false |
| Whether the button is currently pressed. | |
| 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 a digital button input on a controller.
Definition at line 66 of file ControllerInterface.h.
|
inline |
Constructs a ControlButton with the given identifier.
| [in] | id | The unique identifier for this button. |
Definition at line 72 of file ControllerInterface.h.
References ControllerInterface::ControllerInput::ControllerInput(), and ControllerInterface::ControllerInput::id.
|
inline |
Constructs a ControlButton with the given identifier and pressed state.
| [in] | id | The unique identifier for this button. |
| [in] | pressed | Whether the button is currently pressed. |
Definition at line 80 of file ControllerInterface.h.
References ControllerInterface::ControllerInput::ControllerInput(), ControllerInterface::ControllerInput::id, and pressed.