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#include "xrt/xrt_compiler.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20struct xrt_device;
21struct xrt_tracked_psmv;
22
23/*!
24 * @defgroup drv_psmv PS Move driver
25 * @ingroup drv
26 *
27 * @brief Driver for the Sony PlayStation Move Controller.
28 */
29
30
31#define PSMV_VID 0x054c
32#define PSMV_PID_ZCM1 0x03d5
33#define PSMV_PID_ZCM2 0x0c5e
34
35/*!
36 * Function to create a PSMV device.
37 *
38 * @ingroup drv_psmv
39 * @see xrt_builder
40 */
41struct xrt_device *
42psmv_device_create(struct xrt_prober *xp, struct xrt_prober_device *xpdev, struct xrt_tracked_psmv *tracker);
43
44/*!
45 * Probing function for the PS Move devices.
46 *
47 * @ingroup drv_psmv
48 * @see xrt_prober_found_func_t
49 */
50int
51psmv_found(struct xrt_prober *xp,
52 struct xrt_prober_device **devices,
53 size_t device_count,
54 size_t index,
55 cJSON *attached_data,
56 struct xrt_device **out_xdevs);
57
58/*!
59 * @dir drivers/psmv
60 *
61 * @brief @ref drv_psmv files.
62 */
63
64
65#ifdef __cplusplus
66}
67#endif
int psmv_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdevs)
Probing function for the PS Move devices.
Definition: psmv_driver.c:987
struct xrt_device * psmv_device_create(struct xrt_prober *xp, struct xrt_prober_device *xpdev, struct xrt_tracked_psmv *tracker)
Function to create a PSMV device.
Definition: psmv_driver.c:1022
A single HMD or input device.
Definition: xrt_device.h:241
A probed device, may or may not be opened.
Definition: xrt_prober.h:85
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:132
A single tracked PS Move controller, camera and ball are not synced.
Definition: xrt_tracking.h:218
Header holding common defines.