Blender
V3.3
|
#include <GHOST_XrAction.h>
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, const int64_t &duration, const float &frequency, const float &litude) |
void | stopHapticFeedback (XrSession session, const char *action_name, const char *subaction_path) |
void * | getCustomdata () |
void | getBindings (std::map< XrPath, std::vector< XrActionSuggestedBinding >> &r_bindings) const |
Definition at line 75 of file GHOST_XrAction.h.
|
delete |
GHOST_XrAction::GHOST_XrAction | ( | XrInstance | instance, |
XrActionSet | action_set, | ||
const GHOST_XrActionInfo & | info | ||
) |
Definition at line 184 of file GHOST_XrAction.cpp.
GHOST_XrAction::~GHOST_XrAction | ( | ) |
Definition at line 236 of file GHOST_XrAction.cpp.
References CHECK_XR_ASSERT.
void GHOST_XrAction::applyHapticFeedback | ( | XrSession | session, |
const char * | action_name, | ||
const char * | subaction_path, | ||
const int64_t & | duration, | ||
const float & | frequency, | ||
const float & | amplitude | ||
) |
Definition at line 366 of file GHOST_XrAction.cpp.
References CHECK_XR, and data.
Referenced by GHOST_XrSession::applyHapticAction().
bool GHOST_XrAction::createBinding | ( | XrInstance | instance, |
XrSession | session, | ||
const GHOST_XrActionProfileInfo & | info | ||
) |
Definition at line 243 of file GHOST_XrAction.cpp.
References instance.
Referenced by GHOST_XrSession::createActionBindings().
void GHOST_XrAction::destroyBinding | ( | const char * | profile_path | ) |
Definition at line 258 of file GHOST_XrAction.cpp.
Referenced by GHOST_XrSession::destroyActionBindings().
void GHOST_XrAction::getBindings | ( | std::map< XrPath, std::vector< XrActionSuggestedBinding >> & | r_bindings | ) | const |
Definition at line 433 of file GHOST_XrAction.cpp.
void * GHOST_XrAction::getCustomdata | ( | ) |
Definition at line 425 of file GHOST_XrAction.cpp.
Referenced by GHOST_XrSession::getActionCustomdata().
void GHOST_XrAction::stopHapticFeedback | ( | XrSession | session, |
const char * | action_name, | ||
const char * | subaction_path | ||
) |
Definition at line 401 of file GHOST_XrAction.cpp.
References CHECK_XR, and data.
Referenced by GHOST_XrSession::stopHapticAction().
void GHOST_XrAction::updateState | ( | XrSession | session, |
const char * | action_name, | ||
XrSpace | reference_space, | ||
const XrTime & | predicted_display_time | ||
) |
Definition at line 265 of file GHOST_XrAction.cpp.
References GHOST_XrSubactionData::axis_flag, CHECK_XR, copy_openxr_pose_to_ghost_pose(), data, GHOST_XrSubactionData::float_threshold, GHOST_XrSubactionData::space, and state.