Blender V4.3
GHOST_XrAction Class Reference

#include <GHOST_XrAction.hh>

Public Member Functions

 GHOST_XrAction ()=delete
 
GHOST_XrAction
 GHOST_XrAction (XrInstance instance, XrActionSet action_set, const GHOST_XrActionInfo &info)
 
 ~GHOST_XrAction ()
 
bool createBinding (XrInstance instance, XrSession session, const GHOST_XrActionProfileInfo &info)
 
void destroyBinding (const char *profile_path)
 
void updateState (XrSession session, const char *action_name, XrSpace reference_space, const XrTime &predicted_display_time)
 
void applyHapticFeedback (XrSession session, const char *action_name, const char *subaction_path_str, const int64_t &duration, const float &frequency, const float &amplitude)
 
void stopHapticFeedback (XrSession session, const char *action_name, const char *subaction_path_str)
 
void * getCustomdata ()
 
void getBindings (std::map< XrPath, std::vector< XrActionSuggestedBinding > > &r_bindings) const
 

Detailed Description

Definition at line 77 of file GHOST_XrAction.hh.

Constructor & Destructor Documentation

◆ GHOST_XrAction() [1/2]

GHOST_XrAction::GHOST_XrAction ( )
delete

◆ GHOST_XrAction() [2/2]

GHOST_XrAction::GHOST_XrAction ( XrInstance instance,
XrActionSet action_set,
const GHOST_XrActionInfo & info )

Definition at line 186 of file GHOST_XrAction.cc.

References CHECK_XR, and data.

◆ ~GHOST_XrAction()

GHOST_XrAction::~GHOST_XrAction ( )

Definition at line 238 of file GHOST_XrAction.cc.

References CHECK_XR_ASSERT.

Member Function Documentation

◆ applyHapticFeedback()

void GHOST_XrAction::applyHapticFeedback ( XrSession session,
const char * action_name,
const char * subaction_path_str,
const int64_t & duration,
const float & frequency,
const float & amplitude )

Definition at line 368 of file GHOST_XrAction.cc.

References CHECK_XR, and data.

Referenced by GHOST_XrSession::applyHapticAction().

◆ createBinding()

bool GHOST_XrAction::createBinding ( XrInstance instance,
XrSession session,
const GHOST_XrActionProfileInfo & info )

Definition at line 245 of file GHOST_XrAction.cc.

Referenced by GHOST_XrSession::createActionBindings().

◆ destroyBinding()

void GHOST_XrAction::destroyBinding ( const char * profile_path)

Definition at line 260 of file GHOST_XrAction.cc.

Referenced by GHOST_XrSession::destroyActionBindings().

◆ getBindings()

void GHOST_XrAction::getBindings ( std::map< XrPath, std::vector< XrActionSuggestedBinding > > & r_bindings) const

Definition at line 435 of file GHOST_XrAction.cc.

◆ getCustomdata()

void * GHOST_XrAction::getCustomdata ( )

Definition at line 427 of file GHOST_XrAction.cc.

Referenced by GHOST_XrSession::getActionCustomdata().

◆ stopHapticFeedback()

void GHOST_XrAction::stopHapticFeedback ( XrSession session,
const char * action_name,
const char * subaction_path_str )

Definition at line 403 of file GHOST_XrAction.cc.

References CHECK_XR, and data.

Referenced by GHOST_XrSession::stopHapticAction().

◆ updateState()

void GHOST_XrAction::updateState ( XrSession session,
const char * action_name,
XrSpace reference_space,
const XrTime & predicted_display_time )

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