Identifies a single control, such as a button, trigger, or joystick, on a single device.
More...
#include <input_data.hpp>
|
InputAttributesType | mAttributes {0} |
| The attributes of the input control, queryable using values from InputAttributes.
|
|
uint8_t | mDevice {0} |
| The ID of a device, assuming several of the same devices can be connected to a single platform.
|
|
uint32_t | mControl {0} |
| The ID of the control on a single device, if the device has multiple controls (buttons, triggers, and the like).
|
|
DeviceType | mDeviceType {DeviceType::NA} |
| The type of device described by this object.
|
|
ControlType | mControlType {ControlType::NA} |
| The type of control belonging to this device, described by this object.
|
|
Identifies a single control, such as a button, trigger, or joystick, on a single device.
◆ operator bool()
ToyMaker::InputSourceDescription::operator bool |
( |
| ) |
const |
|
inline |
Explicitly defines what are considered truthy and falsey values for this type.
- Return values
-
true | At least one of mDeviceType or mControlType is defined; |
false | Neither of mDeviceType or mControlType are defined; |
◆ operator<()
Compares one description to another, for use by the equality operator.
Also used for sorting.
- Parameters
-
other | The input source description being compared to this one. |
- Return values
-
true | This input source is "less than"; |
false | The input source is not "less than" |
◆ operator==()
Compares one description to another for equality.
Used mainly to ensure that when used in containers like maps, that different input sources are seen as unique.
- Parameters
-
other | The other input source description, being compared to this one. |
- Return values
-
true | The input sources are different; |
false | The input sources are the same; |
The documentation for this struct was generated from the following file: