The open source OpenXR runtime
at main 51 lines 886 B view raw
1// Copyright 2019, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Interface to @ref drv_hydra 6 * @author Rylie Pavlik <rylie.pavlik@collabora.com> 7 * @ingroup drv_hydra 8 */ 9 10#pragma once 11 12#include <stdlib.h> 13 14#ifdef __cplusplus 15extern "C" { 16#endif 17/*! 18 * @defgroup drv_hydra Razer Hydra driver 19 * @ingroup drv 20 * 21 * @brief Driver for the Razer Hydra motion controllers. 22 */ 23 24 25#define HYDRA_VID 0x1532 26#define HYDRA_PID 0x0300 27 28/*! 29 * Probing function for Razer Hydra devices. 30 * 31 * @ingroup drv_hydra 32 * @see xrt_prober_found_func_t 33 */ 34int 35hydra_found(struct xrt_prober *xp, 36 struct xrt_prober_device **devices, 37 size_t device_count, 38 size_t index, 39 cJSON *attached_data, 40 struct xrt_device **out_xdevs); 41 42 43/*! 44 * @dir drivers/hydra 45 * 46 * @brief @ref drv_hydra files. 47 */ 48 49#ifdef __cplusplus 50} 51#endif