Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_system_helpers.c File Reference

Helpers for probing and querying xrt_system_devices. More...

#include "xrt/xrt_device.h"
#include "xrt/xrt_prober.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_system_helpers.h"
#include <assert.h>
#include <string.h>
Include dependency graph for u_system_helpers.c:

Functions

static bool xdev_has_input (const struct xrt_device *xdev, enum xrt_input_name name)
 
xrt_result_t u_system_devices_create_from_prober (struct xrt_instance *xinst, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso)
 Takes a xrt_instance, gets the prober from it and then uses the prober to create a populated xrt_system_devices struct from it.
 
struct xrt_device * u_system_devices_get_ht_device (struct xrt_system_devices *xsysd, enum xrt_input_name name)
 Looks through xrt_system_devices's devices and returns the first device that supports hand tracking and the supplied input name.
 
void u_system_devices_supported_from_xdevs (struct xrt_device *const *xdevs, uint32_t xdev_count, struct xrt_system_devices_supported *out_supported)
 Computes the features supported by the given list of devices.
 
void u_system_devices_supported_from_static_roles (const struct xrt_system_devices *xsysd, struct xrt_system_devices_supported *out_supported)
 Computes the features supported by the xrt_system_devices, using the devices in xrt_system_devices::static_roles that are responsible for each feature:
 

Detailed Description

Helpers for probing and querying xrt_system_devices.

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