summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h')
-rw-r--r--contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h
new file mode 100644
index 0000000..8acc52e
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h
@@ -0,0 +1,40 @@
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_HIDCLASS_H
21#define HIDAPI_HIDCLASS_H
22
23#ifdef HIDAPI_USE_DDK
24
25#include <hidclass.h>
26
27#else
28
29#include <winioctl.h>
30
31/* This part of the header mimics hidclass.h,
32 but only what is used by HIDAPI */
33
34#define HID_OUT_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
35#define IOCTL_HID_GET_FEATURE HID_OUT_CTL_CODE(100)
36#define IOCTL_HID_GET_INPUT_REPORT HID_OUT_CTL_CODE(104)
37
38#endif
39
40#endif /* HIDAPI_HIDCLASS_H */