Monado OpenXR Runtime
psmv_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_psmv.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup drv_psmv
8  */
9 
10 #pragma once
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /*!
17  * @defgroup drv_psmv PS Move driver
18  * @ingroup drv
19  *
20  * @brief Driver for the Sony PlayStation Move Controller.
21  */
22 
23 
24 #define PSMV_VID 0x054c
25 #define PSMV_PID_ZCM1 0x03d5
26 #define PSMV_PID_ZCM2 0x0c5e
27 
28 /*!
29  * Probing function for the PS Move devices.
30  *
31  * @ingroup drv_psmv
32  */
33 int
34 psmv_found(struct xrt_prober *xp,
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 /*!
42  * @dir drivers/psmv
43  *
44  * @brief @ref drv_psmv files.
45  */
46 
47 
48 #ifdef __cplusplus
49 }
50 #endif
int psmv_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 the PS Move devices.
Definition: psmv_driver.c:926
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