The open source OpenXR runtime
1// Copyright 2023, Collabora, Ltd.
2// Copyright 2023, Jarett Millard
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Interface to @ref drv_pssense
7 * @author Jarett Millard <jarett.millard@gmail.com>
8 * @ingroup drv_pssense
9 */
10
11#pragma once
12
13#include <stdlib.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18/*!
19 * @defgroup drv_pssense PlayStation Sense driver
20 * @ingroup drv
21 *
22 * @brief Driver for the PlayStation Sense motion controllers.
23 */
24
25#define PSSENSE_VID 0x054C
26#define PSSENSE_PID_LEFT 0x0E45
27#define PSSENSE_PID_RIGHT 0x0E46
28
29/*!
30 * Probing function for PlayStation Sense devices.
31 *
32 * @ingroup drv_pssense
33 * @see xrt_prober_found_func_t
34 */
35int
36pssense_found(struct xrt_prober *xp,
37 struct xrt_prober_device **devices,
38 size_t device_count,
39 size_t index,
40 cJSON *attached_data,
41 struct xrt_device **out_xdevs);
42
43/*!
44 * @dir drivers/pssense
45 *
46 * @brief @ref drv_pssense files.
47 */
48
49#ifdef __cplusplus
50}
51#endif