|
Monado OpenXR Runtime
|
Interface to Oculus Rift driver code. More...

Go to the source code of this file.
Enumerations | |
| enum | rift_variant { RIFT_VARIANT_DK1 , RIFT_VARIANT_DK2 , RIFT_VARIANT_CV1 } |
Functions | |
| bool | rift_is_oculus (struct xrt_prober *xp, struct xrt_prober_device *dev) |
| Checks whether the given device is an Oculus device, by checking the manufacturer string. | |
| int | rift_found (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdev) |
| Probing function for Oculus Rift devices. | |
| int | rift_devices_create (struct os_hid_device *hmd_dev, struct os_hid_device *radio_dev, enum rift_variant variant, const char *serial_number, struct rift_hmd **out_hmd, struct xrt_device **out_xdevs) |
| bool | rift_get_radio_id (struct rift_hmd *hmd, uint8_t out_radio_id[5]) |
Interface to Oculus Rift driver code.
| int rift_found | ( | struct xrt_prober * | xp, |
| struct xrt_prober_device ** | devices, | ||
| size_t | device_count, | ||
| size_t | index, | ||
| cJSON * | attached_data, | ||
| struct xrt_device ** | out_xdev | ||
| ) |
Probing function for Oculus Rift devices.
References xrt_device::hmd, xrt_prober_device::product_id, rift_is_oculus(), and U_LOG_I.
| bool rift_is_oculus | ( | struct xrt_prober * | xp, |
| struct xrt_prober_device * | dev | ||
| ) |
Checks whether the given device is an Oculus device, by checking the manufacturer string.
| xp | The prober to use for getting string descriptors. |
| dev | The device to check. |
Referenced by rift_found().