The open source OpenXR runtime
at prediction-2 69 lines 977 B view raw
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 * 49psvr_device_create(struct xrt_tracked_psvr *tracker); 50 51/*! 52 * Create a probe for PSVR devices. 53 * 54 * @ingroup drv_psvr 55 * @relates xrt_auto_prober 56 */ 57struct xrt_auto_prober * 58psvr_create_auto_prober(void); 59 60/*! 61 * @dir drivers/psvr 62 * 63 * @brief @ref drv_psvr files. 64 */ 65 66 67#ifdef __cplusplus 68} 69#endif