|
VR-Engage
2.2
|
Contains all information about an input event, including device information, input type, and value. This is the primary data structure used to communicate input events between devices and the input manager.
#include <inputData.h>
Public Attributes | |
| DtDeviceType | myDeviceType |
| std::string | myDeviceName |
| int | myDeviceIndex |
| double | myTimestamp |
| DtInputType | myInputType |
| int | myInputID |
| float | myInputValue |
| int | myInputFlags = 0 |
| int | myModifiers = 0 |
| DtDeviceType makVre::DtInputData::myDeviceType |
Type of device that generated the input.
| std::string makVre::DtInputData::myDeviceName |
Name of the specific device instance.
When combined with device ID, uniquely identifies the source of the input across all attached devices. If not set, the device type is used instead.
| int makVre::DtInputData::myDeviceIndex |
Index of the device instance, starting with 0.
Used to distinguish between multiple devices with the same name
| double makVre::DtInputData::myTimestamp |
Timestamp when the input event occurred (simulation time)
| DtInputType makVre::DtInputData::myInputType |
Type of input event (button press, axis movement, etc.)
| int makVre::DtInputData::myInputID |
Identifier for the specific input control.
For DtInputTypeKey: ASCII character code For DtInputTypeAxis: Axis index (0, 1, 2, etc.) For DtInputTypeButton: Button index
| float makVre::DtInputData::myInputValue |
Value of the input event.
For buttons: 1.0 (pressed) or 0.0 (released) For axes: Normalized value, typically -1.0 to 1.0 For other inputs: Depends on input type
| int makVre::DtInputData::myInputFlags = 0 |
Optional flags specific to the input type.
For hat inputs: DtHatFlags values For axis inputs: DtAxisFlags values
| int makVre::DtInputData::myModifiers = 0 |
Keyboard modifiers active during the input event.
Stores modifier key states (Ctrl, Alt, Shift, etc.)