Blender V5.3
GHOST_XrEvent.cc File Reference
#include "GHOST_Xr-api.hh"
#include "GHOST_XrContext.hh"
#include "GHOST_Xr_intern.hh"

Go to the source code of this file.

Functions

static bool GHOST_XrEventPollNext (XrInstance instance, XrEventDataBuffer &r_event_data)
GHOST_TSuccess GHOST_XrEventsHandle (GHOST_IXrContext *xr_contexthandle)

Function Documentation

◆ GHOST_XrEventPollNext()

bool GHOST_XrEventPollNext ( XrInstance instance,
XrEventDataBuffer & r_event_data )
static

Definition at line 13 of file GHOST_XrEvent.cc.

References GHOST_XrEventPollNext().

Referenced by GHOST_XrEventPollNext(), and GHOST_XrEventsHandle().

◆ GHOST_XrEventsHandle()

GHOST_TSuccess GHOST_XrEventsHandle ( GHOST_IXrContext * xr_context)

Invoke handling of all OpenXR events for xr_context. Should be called on every main-loop iteration and will early-exit if xr_context is nullptr (so caller doesn't have to check).

Returns
GHOST_kSuccess if any event was handled, otherwise GHOST_kFailure.

Definition at line 22 of file GHOST_XrEvent.cc.

References CLOG_INFO, GHOST_XrContext::getInstance(), GHOST_kFailure, GHOST_kSuccess, GHOST_XrContextDestroy(), GHOST_XrEventPollNext(), GHOST_XrEventsHandle(), GHOST_XrContext::handleSessionStateChange(), LOG_GHOST_XR, and CLG_LogRef::type.

Referenced by GHOST_XrEventsHandle(), and blender::wm_xr_events_handle().