The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 67 lines 1.2 kB view raw
1// Copyright 2019, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Interface to @ref drv_psmv. 6 * @author Jakob Bornecrantz <jakob@collabora.com> 7 * @ingroup drv_psmv 8 */ 9 10#pragma once 11 12#include "xrt/xrt_compiler.h" 13 14 15#ifdef __cplusplus 16extern "C" { 17#endif 18 19 20struct xrt_device; 21struct xrt_tracked_psmv; 22 23/*! 24 * @defgroup drv_psmv PS Move driver 25 * @ingroup drv 26 * 27 * @brief Driver for the Sony PlayStation Move Controller. 28 */ 29 30 31#define PSMV_VID 0x054c 32#define PSMV_PID_ZCM1 0x03d5 33#define PSMV_PID_ZCM2 0x0c5e 34 35/*! 36 * Function to create a PSMV device. 37 * 38 * @ingroup drv_psmv 39 * @see xrt_builder 40 */ 41struct xrt_device * 42psmv_device_create(struct xrt_prober *xp, struct xrt_prober_device *xpdev, struct xrt_tracked_psmv *tracker); 43 44/*! 45 * Probing function for the PS Move devices. 46 * 47 * @ingroup drv_psmv 48 * @see xrt_prober_found_func_t 49 */ 50int 51psmv_found(struct xrt_prober *xp, 52 struct xrt_prober_device **devices, 53 size_t device_count, 54 size_t index, 55 cJSON *attached_data, 56 struct xrt_device **out_xdevs); 57 58/*! 59 * @dir drivers/psmv 60 * 61 * @brief @ref drv_psmv files. 62 */ 63 64 65#ifdef __cplusplus 66} 67#endif