Monado OpenXR Runtime
psvr2_interface.h
Go to the documentation of this file.
1// Copyright 2020-2021, Collabora, Ltd.
2// Copyright 2023, Jan Schmidt
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief PSVR2 HMD device
7 *
8 * @author Jan Schmidt <jan@centricular.com>
9 * @author Jakob Bornecrantz <jakob@collabora.com>
10 * @author Ryan Pavlik <ryan.pavlik@collabora.com>
11 * @ingroup drv_psvr2
12 */
13
14#pragma once
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/*!
21 * @defgroup drv_psvr2 PS VR2 HMD driver
22 * @ingroup drv
23 *
24 * @brief Driver for the Playstation VR2 headset
25 *
26 */
27
28#define PSVR2_VID 0x054C
29#define PSVR2_PID 0x0CDE
30
31/*!
32 * Create the PS VR2 HMD device
33 *
34 * @ingroup drv_psvr2
35 */
36struct xrt_device *
38
39/*!
40 * Probing function for PlayStation VR2 devices.
41 *
42 * @ingroup drv_psvr2
43 * @see xrt_prober_found_func_t
44 */
45int
46psvr2_found(struct xrt_prober *xp,
47 struct xrt_prober_device **devices,
48 size_t device_count,
49 size_t index,
50 cJSON *attached_data,
51 struct xrt_device **out_xdevs);
52
53/*!
54 * @dir drivers/psvr2
55 *
56 * @brief @ref drv_psvr2 files.
57 */
58
59
60#ifdef __cplusplus
61}
62#endif
int psvr2_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 PlayStation VR2 devices.
Definition: psvr2_prober.c:23
struct xrt_device * psvr2_hmd_create(struct xrt_prober_device *xpdev)
Create the PS VR2 HMD device.
Definition: psvr2.c:1122
A single HMD or input device.
Definition: xrt_device.h:310
A probed device, may or may not be opened.
Definition: xrt_prober.h:86
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:133