Monado OpenXR Runtime
psvr_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_psvr.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @ingroup drv_psvr
8 */
9
10#pragma once
11
12#include "xrt/xrt_compiler.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19struct xrt_tracked_psvr;
20
21
22/*!
23 * @defgroup drv_psvr PSVR driver
24 * @ingroup drv
25 *
26 * @brief Driver for the Sony PSVR HMD.
27 */
28
29/*!
30 * Vendor id for PSVR.
31 *
32 * @ingroup drv_psvr
33 */
34#define PSVR_VID 0x054c
35
36/*!
37 * Product id for PSVR.
38 *
39 * @ingroup drv_psvr
40 */
41#define PSVR_PID 0x09af
42
43/*!
44 * Create PSVR device, with a optional tracker.
45 *
46 * @ingroup drv_psvr
47 */
48struct xrt_device *
50
51/*!
52 * Create a probe for PSVR devices.
53 *
54 * @ingroup drv_psvr
55 * @relates xrt_auto_prober
56 */
57struct xrt_auto_prober *
59
60/*!
61 * @dir drivers/psvr
62 *
63 * @brief @ref drv_psvr files.
64 */
65
66
67#ifdef __cplusplus
68}
69#endif
struct xrt_device * psvr_device_create(struct xrt_tracked_psvr *tracker)
Create PSVR device, with a optional tracker.
Definition: psvr_prober.c:153
struct xrt_auto_prober * psvr_create_auto_prober(void)
Create a probe for PSVR devices.
Definition: psvr_prober.c:140
An interface to be exposed by a device driver that should probe for the existence of its own device o...
Definition: xrt_prober.h:761
A single HMD or input device.
Definition: xrt_device.h:241
A tracked PSVR headset.
Definition: xrt_tracking.h:260
Header holding common defines.