VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtInputData Struct Reference

Detailed Description

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
 

Member Data Documentation

◆ myDeviceType

DtDeviceType makVre::DtInputData::myDeviceType

Type of device that generated the input.

◆ myDeviceName

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.

◆ myDeviceIndex

int makVre::DtInputData::myDeviceIndex

Index of the device instance, starting with 0.

Used to distinguish between multiple devices with the same name

◆ myTimestamp

double makVre::DtInputData::myTimestamp

Timestamp when the input event occurred (simulation time)

◆ myInputType

DtInputType makVre::DtInputData::myInputType

Type of input event (button press, axis movement, etc.)

◆ myInputID

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

◆ myInputValue

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

◆ myInputFlags

int makVre::DtInputData::myInputFlags = 0

Optional flags specific to the input type.

For hat inputs: DtHatFlags values For axis inputs: DtAxisFlags values

◆ myModifiers

int makVre::DtInputData::myModifiers = 0

Keyboard modifiers active during the input event.

Stores modifier key states (Ctrl, Alt, Shift, etc.)


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