Monado OpenXR Runtime
vive_controller_interface.h
Go to the documentation of this file.
1 // Copyright 2020, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Interface to @ref drv_vive
6  * @author Christoph Haag <christoph.haag@collabora.com>
7  * @author Ryan Pavlik <ryan.pavlik@collabora.com>
8  * @ingroup drv_vive
9  */
10 
11 #pragma once
12 
13 #include <stdlib.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 /*!
19  * @ingroup drv_vive
20  *
21  * @brief Driver for the HTC Vive and Valve Index controllers.
22  */
23 
24 #define VALVE_VID 0x28de
25 #define VIVE_WATCHMAN_DONGLE 0x2101
26 #define VIVE_WATCHMAN_DONGLE_GEN2 0x2102
27 
28 /*!
29  * Probing function for HTC Vive and Valve Index devices.
30  *
31  * @ingroup drv_vive
32  */
33 int
35  struct xrt_prober_device **devices,
36  size_t num_devices,
37  size_t index,
38  cJSON *attached_data,
39  struct xrt_device **out_xdevs);
40 
41 #ifdef __cplusplus
42 }
43 #endif
struct cJSON cJSON
Definition: xrt_prober.h:26
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:153
A probed device, may or may not be opened.
Definition: xrt_prober.h:125
A single HMD or input device.
Definition: xrt_device.h:202
size_t index
Which vive controller in the system are we?
Definition: vive_controller_driver.c:171
int vive_controller_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, cJSON *attached_data, struct xrt_device **out_xdevs)
Probing function for HTC Vive and Valve Index devices.
Definition: vive_controller_driver.c:1057