Kanda Players 0.7.0
Loading...
Searching...
No Matches
VirtualOpenXrInputCollector Class Reference

Allows for imitating VR players in the editor by using Keyboard and Mouse input to set the state of "virtual" XR devices. More...

+ Inheritance diagram for VirtualOpenXrInputCollector:

Public Member Functions

void Enable ()
 Enable the input collector, prompting it to set up and enable appropriate input actions.
 
float3 GetHmdPosition ()
 Gets the floor-tracked position of the Head Mounted Device.
 
quaternion GetHmdRotation ()
 Gets the rotation of the Head Mounted Device.
 
float3 GetLeftHandPosition ()
 Gets the Left hand's position.
 
quaternion GetLeftHandRotation ()
 Gets the Left hand's rotation.
 
bool GetLeftHandTriggerPress ()
 Gets the Left hand's trigger press.
 
bool GetLeftHandTriggerWasPressed ()
 Gets the Left hand's trigger was pressed state in one frame.
 
bool GetLeftHandTriggerWasReleased ()
 Gets the Left hand's trigger was released state in one frame.
 
float GetLeftHandTrigger ()
 Gets the Left hand's trigger value.
 
bool GetLeftHandGripPress ()
 Gets the Left hand's grip press.
 
bool GetLeftHandGripWasPressed ()
 Gets the Left hand's grip was pressed state in one frame.
 
bool GetLeftHandGripWasReleased ()
 Gets the Left hand's grip was released state in one frame.
 
float GetLeftHandGrip ()
 Gets the Left hand's grip value.
 
bool GetLeftHandPrimaryButtonPress ()
 Gets the Left hand's primary button press.
 
bool GetLeftHandPrimaryButtonWasPressed ()
 Gets the Left hand's primary button was pressed state in one frame.
 
bool GetLeftHandPrimaryButtonWasReleased ()
 Gets the Left hand's primary button was released state in one frame.
 
bool GetLeftHandSecondaryButtonPress ()
 Gets the Left hand's secondary button press.
 
bool GetLeftHandSecondaryButtonWasPressed ()
 Gets the Left hand's secondary button was pressed state in one frame.
 
bool GetLeftHandSecondaryButtonWasReleased ()
 Gets the Left hand's secondary button was released state in one frame.
 
float2 GetLeftHandThumbstick ()
 Gets the Left hand's thumbstick value.
 
float3 GetRightHandPosition ()
 Gets the Right hand's position.
 
quaternion GetRightHandRotation ()
 Gets the Right hand's rotation.
 
bool GetRightHandTriggerPress ()
 Gets the Right hand's trigger press.
 
bool GetRightHandTriggerWasPressed ()
 Gets the Right hand's trigger was pressed state in one frame.
 
bool GetRightHandTriggerWasReleased ()
 Gets the Right hand's trigger was released state in one frame.
 
float GetRightHandTrigger ()
 Gets the Right hand's trigger value.
 
bool GetRightHandGripPress ()
 Gets the Right hand's grip press.
 
bool GetRightHandGripWasPressed ()
 Gets the Right hand's grip was pressed state in one frame.
 
bool GetRightHandGripWasReleased ()
 Gets the Right hand's grip was released state in one frame.
 
float GetRightHandGrip ()
 Gets the Right hand's grip value.
 
bool GetRightHandPrimaryButtonPress ()
 Gets the Right hand's primary button press.
 
bool GetRightHandPrimaryButtonWasPressed ()
 Gets the Right hand's primary button was pressed state in one frame.
 
bool GetRightHandPrimaryButtonWasReleased ()
 Gets the Right hand's primary button was released state in one frame.
 
bool GetRightHandSecondaryButtonPress ()
 Gets the Right hand's secondary button click.
 
bool GetRightHandSecondaryButtonWasPressed ()
 Gets the Right hand's secondary button was pressed state in one frame.
 
bool GetRightHandSecondaryButtonWasReleased ()
 Gets the Right hand's secondary button was released state in one frame.
 
float2 GetRightHandThumbstick ()
 Gets the Right hand's thumbstick value.
 
void Dispose ()
 

Properties

bool IsEnabled [get]
 True if the input collector has been enabled.
 
- Properties inherited from IInputCollector

Detailed Description

Allows for imitating VR players in the editor by using Keyboard and Mouse input to set the state of "virtual" XR devices.

Member Function Documentation

◆ Enable()

void Enable ( )
inline

Enable the input collector, prompting it to set up and enable appropriate input actions.

Implements IInputCollector.

◆ GetHmdPosition()

float3 GetHmdPosition ( )
inline

Gets the floor-tracked position of the Head Mounted Device.

Implements IOpenXrInputCollector.

◆ GetHmdRotation()

quaternion GetHmdRotation ( )
inline

Gets the rotation of the Head Mounted Device.

Implements IOpenXrInputCollector.

◆ GetLeftHandGrip()

float GetLeftHandGrip ( )
inline

Gets the Left hand's grip value.

Implements IOpenXrInputCollector.

◆ GetLeftHandGripPress()

bool GetLeftHandGripPress ( )
inline

Gets the Left hand's grip press.

Implements IOpenXrInputCollector.

◆ GetLeftHandGripWasPressed()

bool GetLeftHandGripWasPressed ( )
inline

Gets the Left hand's grip was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandGripWasReleased()

bool GetLeftHandGripWasReleased ( )
inline

Gets the Left hand's grip was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandPosition()

float3 GetLeftHandPosition ( )
inline

Gets the Left hand's position.

Implements IOpenXrInputCollector.

◆ GetLeftHandPrimaryButtonPress()

bool GetLeftHandPrimaryButtonPress ( )
inline

Gets the Left hand's primary button press.

Implements IOpenXrInputCollector.

◆ GetLeftHandPrimaryButtonWasPressed()

bool GetLeftHandPrimaryButtonWasPressed ( )
inline

Gets the Left hand's primary button was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandPrimaryButtonWasReleased()

bool GetLeftHandPrimaryButtonWasReleased ( )
inline

Gets the Left hand's primary button was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandRotation()

quaternion GetLeftHandRotation ( )
inline

Gets the Left hand's rotation.

Implements IOpenXrInputCollector.

◆ GetLeftHandSecondaryButtonPress()

bool GetLeftHandSecondaryButtonPress ( )
inline

Gets the Left hand's secondary button press.

Implements IOpenXrInputCollector.

◆ GetLeftHandSecondaryButtonWasPressed()

bool GetLeftHandSecondaryButtonWasPressed ( )
inline

Gets the Left hand's secondary button was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandSecondaryButtonWasReleased()

bool GetLeftHandSecondaryButtonWasReleased ( )
inline

Gets the Left hand's secondary button was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandThumbstick()

float2 GetLeftHandThumbstick ( )
inline

Gets the Left hand's thumbstick value.

Implements IOpenXrInputCollector.

◆ GetLeftHandTrigger()

float GetLeftHandTrigger ( )
inline

Gets the Left hand's trigger value.

Implements IOpenXrInputCollector.

◆ GetLeftHandTriggerPress()

bool GetLeftHandTriggerPress ( )
inline

Gets the Left hand's trigger press.

Implements IOpenXrInputCollector.

◆ GetLeftHandTriggerWasPressed()

bool GetLeftHandTriggerWasPressed ( )
inline

Gets the Left hand's trigger was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetLeftHandTriggerWasReleased()

bool GetLeftHandTriggerWasReleased ( )
inline

Gets the Left hand's trigger was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandGrip()

float GetRightHandGrip ( )
inline

Gets the Right hand's grip value.

Implements IOpenXrInputCollector.

◆ GetRightHandGripPress()

bool GetRightHandGripPress ( )
inline

Gets the Right hand's grip press.

Implements IOpenXrInputCollector.

◆ GetRightHandGripWasPressed()

bool GetRightHandGripWasPressed ( )
inline

Gets the Right hand's grip was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandGripWasReleased()

bool GetRightHandGripWasReleased ( )
inline

Gets the Right hand's grip was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandPosition()

float3 GetRightHandPosition ( )
inline

Gets the Right hand's position.

Implements IOpenXrInputCollector.

◆ GetRightHandPrimaryButtonPress()

bool GetRightHandPrimaryButtonPress ( )
inline

Gets the Right hand's primary button press.

Implements IOpenXrInputCollector.

◆ GetRightHandPrimaryButtonWasPressed()

bool GetRightHandPrimaryButtonWasPressed ( )
inline

Gets the Right hand's primary button was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandPrimaryButtonWasReleased()

bool GetRightHandPrimaryButtonWasReleased ( )
inline

Gets the Right hand's primary button was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandRotation()

quaternion GetRightHandRotation ( )
inline

Gets the Right hand's rotation.

Implements IOpenXrInputCollector.

◆ GetRightHandSecondaryButtonPress()

bool GetRightHandSecondaryButtonPress ( )
inline

Gets the Right hand's secondary button click.

Implements IOpenXrInputCollector.

◆ GetRightHandSecondaryButtonWasPressed()

bool GetRightHandSecondaryButtonWasPressed ( )
inline

Gets the Right hand's secondary button was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandSecondaryButtonWasReleased()

bool GetRightHandSecondaryButtonWasReleased ( )
inline

Gets the Right hand's secondary button was released state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandThumbstick()

float2 GetRightHandThumbstick ( )
inline

Gets the Right hand's thumbstick value.

Implements IOpenXrInputCollector.

◆ GetRightHandTrigger()

float GetRightHandTrigger ( )
inline

Gets the Right hand's trigger value.

Implements IOpenXrInputCollector.

◆ GetRightHandTriggerPress()

bool GetRightHandTriggerPress ( )
inline

Gets the Right hand's trigger press.

Implements IOpenXrInputCollector.

◆ GetRightHandTriggerWasPressed()

bool GetRightHandTriggerWasPressed ( )
inline

Gets the Right hand's trigger was pressed state in one frame.

Implements IOpenXrInputCollector.

◆ GetRightHandTriggerWasReleased()

bool GetRightHandTriggerWasReleased ( )
inline

Gets the Right hand's trigger was released state in one frame.

Implements IOpenXrInputCollector.

Property Documentation

◆ IsEnabled

bool IsEnabled
get

True if the input collector has been enabled.

Implements IInputCollector.


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