Monado OpenXR Runtime
Loading...
Searching...
No Matches
pssense_interface.h
Go to the documentation of this file.
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 "xrt/xrt_frame.h"
14
16
17#include <stdlib.h>
18
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23/*!
24 * @defgroup drv_pssense PlayStation Sense driver
25 * @ingroup drv
26 *
27 * @brief Driver for the PlayStation Sense motion controllers.
28 */
29
30#define PSSENSE_VID 0x054C
31#define PSSENSE_PID_LEFT 0x0E45
32#define PSSENSE_PID_RIGHT 0x0E46
33
34/*!
35 * Create a PlayStation Sense controller device.
36 *
37 * @param xp The prober creating the device.
38 * @param xpdev The prober device.
39 * @param xfctx The frame context.
40 * @param[out] out_timing_sink Optional timing event sink output pointer.
41 *
42 * @ingroup drv_pssense
43 */
44struct xrt_device *
45pssense_create(struct xrt_prober *xp,
46 struct xrt_prober_device *xpdev,
47 struct xrt_frame_context *xfctx,
48 struct t_timing_event_sink **out_timing_sink);
49
50/*!
51 * @dir drivers/pssense
52 *
53 * @brief @ref drv_pssense files.
54 */
55
56#ifdef __cplusplus
57}
58#endif
struct xrt_device * pssense_create(struct xrt_prober *xp, struct xrt_prober_device *xpdev, struct xrt_frame_context *xfctx, struct t_timing_event_sink **out_timing_sink)
Create a PlayStation Sense controller device.
Definition pssense_driver.c:1209
A time sync sink is a component that receives timing events from a stable timing source,...
Definition t_time_sync.h:69
A single HMD or input device.
Definition xrt_device.h:311
Object used to track all sinks and frame producers in a graph.
Definition xrt_frame.h:108
A probed device, may or may not be opened.
Definition xrt_prober.h:88
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition xrt_prober.h:135
Header defining interfaces for time synchronization in Monado.
Data frame header.