mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-23 07:01:55 +00:00
9fbe81e494
Port across the Oculus Rift S driver from OpenHMD as a native Monado driver. This is mostly the same as the OpenHMD 3DOF driver, with slightly better HMD distortion correction, various small fixes, some capsense touch detection support. Controller poses are rotated 40° to match grip pose.
47 lines
739 B
C
47 lines
739 B
C
// Copyright 2020-2021, Collabora, Ltd.
|
|
// Copyright 2022 Jan Schmidt
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
/*!
|
|
* @file
|
|
* @brief Interface to rift_s driver.
|
|
* @author Jan Schmidt <jan@centricular.com>
|
|
* @ingroup drv_rift_s
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xrt/xrt_prober.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* @defgroup drv_rift_s Oculus Rift S driver
|
|
* @ingroup drv
|
|
*
|
|
* @brief Driver for the Oculus Rift S and touch controllers
|
|
*
|
|
*/
|
|
|
|
#define OCULUS_VR_INC_VID 0x2833
|
|
#define OCULUS_RIFT_S_PID 0x0051
|
|
|
|
/*!
|
|
* Builder setup for Oculus Rift S HMD.
|
|
*
|
|
* @ingroup drv_rift_s
|
|
*/
|
|
struct xrt_builder *
|
|
rift_s_builder_create(void);
|
|
|
|
/*!
|
|
* @dir drivers/rift_s
|
|
*
|
|
* @brief @ref drv_rift_s files.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|