The open source OpenXR runtime
1// Copyright 2020-2021, Collabora, Ltd.
2// Copyright 2020-2021, Moshi Turner.
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Driver for Ultraleap's V2 API for the Leap Motion Controller.
7 * @author Moshi Turner <moshiturner@protonmail.com>
8 * @author Christoph Haag <christoph.haag@collabora.com>
9 * @ingroup drv_ulv2
10 */
11
12#pragma once
13
14#include "math/m_api.h"
15#include "xrt/xrt_device.h"
16#include "xrt/xrt_prober.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define ULV2_VID 0xf182
23#define ULV2_PID 0x0003
24
25/*!
26 * @defgroup drv_ulv2 Leap Motion Controller driver
27 * @ingroup drv
28 *
29 * @brief Leap Motion Controller driver using Ultraleap's V2 API
30 */
31
32/*!
33 * Probing function for Leap Motion Controller.
34 *
35 * @ingroup drv_ulv2
36 * @see xrt_prober_found_func_t
37 */
38xrt_result_t
39ulv2_create_device(struct xrt_device **out_xdev);
40#ifdef __cplusplus
41}
42#endif