Monado OpenXR Runtime
hydra_interface.h
Go to the documentation of this file.
1 // Copyright 2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Interface to @ref drv_hydra
6  * @author Ryan Pavlik <ryan.pavlik@collabora.com>
7  * @ingroup drv_hydra
8  */
9 
10 #pragma once
11 
12 #include <stdlib.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 /*!
18  * @defgroup drv_hydra Razer Hydra driver
19  * @ingroup drv
20  *
21  * @brief Driver for the Razer Hydra motion controllers.
22  */
23 
24 
25 #define HYDRA_VID 0x1532
26 #define HYDRA_PID 0x0300
27 
28 /*!
29  * Probing function for Razer Hydra devices.
30  *
31  * @ingroup drv_hydra
32  */
33 int
34 hydra_found(struct xrt_prober *xp,
35  struct xrt_prober_device **devices,
36  size_t num_devices,
37  size_t index,
38  struct xrt_device **out_xdevs);
39 
40 
41 /*!
42  * @dir drivers/hydra
43  *
44  * @brief @ref drv_hydra files.
45  */
46 
47 #ifdef __cplusplus
48 }
49 #endif
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:147
int hydra_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, struct xrt_device **out_xdevs)
Probing function for Razer Hydra devices.
Definition: hydra_driver.c:634
A probed device, may or may not be opened.
Definition: xrt_prober.h:121
A single HMD or input device.
Definition: xrt_device.h:203
size_t index
Which hydra controller in the system are we?
Definition: hydra_driver.c:208