diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidpi.h')
| -rw-r--r-- | contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidpi.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidpi.h b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidpi.h new file mode 100644 index 0000000..75a5812 --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidpi.h | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | /******************************************************* | ||
| 2 | HIDAPI - Multi-Platform library for | ||
| 3 | communication with HID devices. | ||
| 4 | |||
| 5 | libusb/hidapi Team | ||
| 6 | |||
| 7 | Copyright 2022, All Rights Reserved. | ||
| 8 | |||
| 9 | At the discretion of the user of this library, | ||
| 10 | this software may be licensed under the terms of the | ||
| 11 | GNU General Public License v3, a BSD-Style license, or the | ||
| 12 | original HIDAPI license as outlined in the LICENSE.txt, | ||
| 13 | LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt | ||
| 14 | files located at the root of the source distribution. | ||
| 15 | These files may also be found in the public source | ||
| 16 | code repository located at: | ||
| 17 | https://github.com/libusb/hidapi . | ||
| 18 | ********************************************************/ | ||
| 19 | |||
| 20 | #ifndef HIDAPI_HIDPI_H | ||
| 21 | #define HIDAPI_HIDPI_H | ||
| 22 | |||
| 23 | #ifdef HIDAPI_USE_DDK | ||
| 24 | |||
| 25 | #include <hidpi.h> | ||
| 26 | |||
| 27 | #else | ||
| 28 | |||
| 29 | /* This part of the header mimics hidpi.h, | ||
| 30 | but only what is used by HIDAPI */ | ||
| 31 | |||
| 32 | typedef enum _HIDP_REPORT_TYPE | ||
| 33 | { | ||
| 34 | HidP_Input, | ||
| 35 | HidP_Output, | ||
| 36 | HidP_Feature | ||
| 37 | } HIDP_REPORT_TYPE; | ||
| 38 | |||
| 39 | typedef struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA; | ||
| 40 | |||
| 41 | typedef struct _HIDP_CAPS | ||
| 42 | { | ||
| 43 | USAGE Usage; | ||
| 44 | USAGE UsagePage; | ||
| 45 | USHORT InputReportByteLength; | ||
| 46 | USHORT OutputReportByteLength; | ||
| 47 | USHORT FeatureReportByteLength; | ||
| 48 | USHORT Reserved[17]; | ||
| 49 | |||
| 50 | USHORT NumberLinkCollectionNodes; | ||
| 51 | |||
| 52 | USHORT NumberInputButtonCaps; | ||
| 53 | USHORT NumberInputValueCaps; | ||
| 54 | USHORT NumberInputDataIndices; | ||
| 55 | |||
| 56 | USHORT NumberOutputButtonCaps; | ||
| 57 | USHORT NumberOutputValueCaps; | ||
| 58 | USHORT NumberOutputDataIndices; | ||
| 59 | |||
| 60 | USHORT NumberFeatureButtonCaps; | ||
| 61 | USHORT NumberFeatureValueCaps; | ||
| 62 | USHORT NumberFeatureDataIndices; | ||
| 63 | } HIDP_CAPS, *PHIDP_CAPS; | ||
| 64 | |||
| 65 | #define HIDP_STATUS_SUCCESS 0x00110000 | ||
| 66 | #define HIDP_STATUS_INVALID_PREPARSED_DATA 0xc0110001 | ||
| 67 | |||
| 68 | typedef NTSTATUS (__stdcall *HidP_GetCaps_)(PHIDP_PREPARSED_DATA preparsed_data, PHIDP_CAPS caps); | ||
| 69 | |||
| 70 | #endif | ||
| 71 | |||
| 72 | #endif /* HIDAPI_HIDPI_H */ | ||
