Monado OpenXR Runtime
Functions
oxr_xdev.c File Reference

Various helpers for accessing xrt_device. More...

#include "os/os_time.h"
#include "math/m_api.h"
#include "util/u_time.h"
#include "util/u_misc.h"
#include "oxr_objects.h"
#include <assert.h>
Include dependency graph for oxr_xdev.c:

Functions

void oxr_xdev_destroy (struct xrt_device **xdev_ptr)
 
void oxr_xdev_update (struct xrt_device *xdev)
 
bool oxr_xdev_find_input (struct xrt_device *xdev, enum xrt_input_name name, struct xrt_input **out_input)
 Return true if it finds an input of that name on this device. More...
 
bool oxr_xdev_find_output (struct xrt_device *xdev, enum xrt_output_name name, struct xrt_output **out_output)
 Return true if it finds an output of that name on this device. More...
 
void oxr_xdev_get_relation_at (struct oxr_logger *log, struct oxr_instance *inst, struct xrt_device *xdev, enum xrt_input_name name, XrTime at_time, uint64_t *out_relation_timestamp_ns, struct xrt_space_relation *out_relation)
 Returns the relation of the named input from the device, always ensures that position and orientation is valid by using the device offset. More...
 
void oxr_xdev_get_pose_at (struct oxr_logger *log, struct oxr_instance *inst, struct xrt_device *xdev, enum xrt_input_name name, XrTime at_time, uint64_t *out_pose_timestamp_ns, struct xrt_pose *out_pose)
 Returns the pose of the named input from the device, if the pose isn't valid uses the device offset instead. More...
 

Detailed Description

Various helpers for accessing xrt_device.

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