API Documentation
Loading...
Searching...
No Matches
XRInputManager Class Reference

Translates input from the OpenXR interface into NDEVR API actions and events. More...

#include <XRInputManager.h>

Collaboration diagram for XRInputManager:
[legend]

Public Member Functions

Vector< 2, Vector< 2, fltp04 > > getJoystickLocation ()
 
void initializeActions ()
 
void initializeHands ()
 
void pollActions ()
 
void updateHandLocation (const Matrix< fltp08 > &global_transform, XrTime predictedDisplayTime, XrSpace app_space)
 
 XRInputManager (QTModelManager *manager, const DynamicPointer< VulkanXRDevice > &device, XrSession xr_session)
 

Protected Member Functions

void triggerAPulled (uint01 hand, fltp08 percent)
 
void triggerBPulled (uint01 hand, fltp08 percent)
 
XrInstance xrInstance () const
 
XrSession xrSession () const
 
XrSystemId xrSystemID () const
 

Protected Attributes

DynamicPointer< VulkanXRDevicem_device
 
Vector< 2, DistanceMeasureModel * > m_distance_measure_models
 
Vector< 2, XRHand * > m_hands
 
InputState m_input
 
QTModelManagerm_manager
 
Vector< 2, PointMeasureModel * > m_point_measure_models
 
XrSession m_xr_session { XR_NULL_HANDLE }
 

Detailed Description

Translates input from the OpenXR interface into NDEVR API actions and events.


Constructor & Destructor Documentation

◆ XRInputManager()

XRInputManager ( QTModelManager * manager,
const DynamicPointer< VulkanXRDevice > & device,
XrSession xr_session )

Member Function Documentation

◆ getJoystickLocation()

Vector< 2, Vector< 2, fltp04 > > getJoystickLocation ( )

◆ initializeActions()

void initializeActions ( )

◆ initializeHands()

void initializeHands ( )

◆ pollActions()

void pollActions ( )

◆ triggerAPulled()

void triggerAPulled ( uint01 hand,
fltp08 percent )
protected

◆ triggerBPulled()

void triggerBPulled ( uint01 hand,
fltp08 percent )
protected

◆ updateHandLocation()

void updateHandLocation ( const Matrix< fltp08 > & global_transform,
XrTime predictedDisplayTime,
XrSpace app_space )

◆ xrInstance()

XrInstance xrInstance ( ) const
inlineprotected

◆ xrSession()

XrSession xrSession ( ) const
inlineprotected

◆ xrSystemID()

XrSystemId xrSystemID ( ) const
inlineprotected

Member Data Documentation

◆ m_device

DynamicPointer<VulkanXRDevice> m_device
protected

◆ m_distance_measure_models

Vector<2, DistanceMeasureModel*> m_distance_measure_models
protected

◆ m_hands

Vector<2, XRHand*> m_hands
protected

◆ m_input

InputState m_input
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_point_measure_models

Vector<2, PointMeasureModel*> m_point_measure_models
protected

◆ m_xr_session

XrSession m_xr_session { XR_NULL_HANDLE }
protected

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