Monado OpenXR Runtime
Loading...
Searching...
No Matches
b_system_devices.h File Reference

Default implementation helpers for xrt_system_devices. More...

#include "xrt/xrt_frame.h"
#include "xrt/xrt_system.h"
#include "xrt/xrt_tracking.h"
Include dependency graph for b_system_devices.h:

Go to the source code of this file.

Data Structures

struct  b_system_devices
 Helper struct to manage devices by implementing the xrt_system_devices. More...
 
struct  b_system_devices_static
 Helper struct to manage devices by implementing the xrt_system_devices, this has only static device roles. More...
 

Functions

static struct b_system_devicesb_system_devices (struct xrt_system_devices *xsysd)
 Small inline helper to cast from xrt_system_devices.
 
struct b_system_devicesb_system_devices_allocate (void)
 Allocates a empty b_system_devices to be filled in by the caller, only the destroy function is filled in.
 
void b_system_devices_close (struct xrt_system_devices *xsysd)
 Destroys all devices and clears out the frame context, doesn't free the struct itself, useful for code embedding the system devices struct into other objects where it's not the first member or C++ classes.
 
static struct b_system_devices_staticb_system_devices_static (struct xrt_system_devices *xsysd)
 Small inline helper to cast from xrt_system_devices.
 
struct b_system_devices_staticb_system_devices_static_allocate (void)
 Allocates a empty b_system_devices to be filled in by the caller, only the destroy function is filled in.
 
void b_system_devices_static_finalize (struct b_system_devices_static *bsysds, struct xrt_device *left, struct xrt_device *right, struct xrt_device *gamepad)
 Finalizes the static struct with the given input devices, the system devices will always return these devices for the left and right role.
 

Detailed Description

Default implementation helpers for xrt_system_devices.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m