Unigine::InputEventVRDevice Class
Header: | #include <UnigineInput.h> |
Inherits from: | InputEvent |
InputEventVRDevice Class
Перечисления (Enums)
ACTION#
Имя | Описание |
---|---|
ACTION_CONNECTED = 0 | Device state is "connected". |
ACTION_DISCONNECTED = 1 | Device state is "disconnected". |
Members
InputEventVRDevice ( ) #
Default constructor.InputEventVRDevice ( unsigned long long timestamp, const Math::ivec2 & mouse_pos ) #
VR device input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
InputEventVRDevice ( unsigned long long timestamp, const Math::ivec2 & mouse_pos, InputEventVRDevice::ACTION action, int connection_id, InputVRDevice::TYPE type ) #
VR device input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
- InputEventVRDevice::ACTION action - Type of the VR device input event, one of the ACTION_* values.
- int connection_id - Connection identifier.
- InputVRDevice::TYPE type - VR device type.
void setAction ( InputEventVRDevice::ACTION action ) #
Sets the type of the VR device input event.Arguments
- InputEventVRDevice::ACTION action - Type of the VR device input event, one of the ACTION_* values.
InputEventVRDevice::ACTION getAction ( ) const#
Returns the type of the VR device input event.Return value
Type of the VR device input event, one of the ACTION_* values.void setConnectionID ( int connectionid ) #
Sets the connection identifier.Arguments
- int connectionid - Connection identifier.
int getConnectionID ( ) const#
Returns the current connection identifier.Return value
Connection identifier.void setType ( InputEventVRDevice::TYPE type ) #
Sets the VR device type.Arguments
- InputEventVRDevice::TYPE type - VR device type.
InputEventVRDevice::TYPE getType ( ) const#
Returns the VR device type.Return value
VR device type.Last update:
16.08.2024
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter