Path: blob/master/thirdparty/sdl/hidapi/windows/hidapi_hidpi.h
9917 views
/*******************************************************1HIDAPI - Multi-Platform library for2communication with HID devices.34libusb/hidapi Team56Copyright 2022, All Rights Reserved.78At the discretion of the user of this library,9this software may be licensed under the terms of the10GNU General Public License v3, a BSD-Style license, or the11original HIDAPI license as outlined in the LICENSE.txt,12LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt13files located at the root of the source distribution.14These files may also be found in the public source15code repository located at:16https://github.com/libusb/hidapi .17********************************************************/1819#ifndef HIDAPI_HIDPI_H20#define HIDAPI_HIDPI_H2122#ifdef HIDAPI_USE_DDK2324#include <hidpi.h>2526#else2728/* This part of the header mimics hidpi.h,29but only what is used by HIDAPI */3031typedef enum _HIDP_REPORT_TYPE32{33HidP_Input,34HidP_Output,35HidP_Feature36} HIDP_REPORT_TYPE;3738typedef struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA;3940typedef struct _HIDP_CAPS41{42USAGE Usage;43USAGE UsagePage;44USHORT InputReportByteLength;45USHORT OutputReportByteLength;46USHORT FeatureReportByteLength;47USHORT Reserved[17];4849USHORT NumberLinkCollectionNodes;5051USHORT NumberInputButtonCaps;52USHORT NumberInputValueCaps;53USHORT NumberInputDataIndices;5455USHORT NumberOutputButtonCaps;56USHORT NumberOutputValueCaps;57USHORT NumberOutputDataIndices;5859USHORT NumberFeatureButtonCaps;60USHORT NumberFeatureValueCaps;61USHORT NumberFeatureDataIndices;62} HIDP_CAPS, *PHIDP_CAPS;6364#define HIDP_STATUS_SUCCESS 0x0011000065#define HIDP_STATUS_INVALID_PREPARSED_DATA 0xc01100016667typedef NTSTATUS (__stdcall *HidP_GetCaps_)(PHIDP_PREPARSED_DATA preparsed_data, PHIDP_CAPS caps);6869#endif7071#endif /* HIDAPI_HIDPI_H */727374