From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- .../SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h (limited to 'contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidclass.h') 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 @@ +/******************************************************* + HIDAPI - Multi-Platform library for + communication with HID devices. + + libusb/hidapi Team + + Copyright 2022, All Rights Reserved. + + At the discretion of the user of this library, + this software may be licensed under the terms of the + GNU General Public License v3, a BSD-Style license, or the + original HIDAPI license as outlined in the LICENSE.txt, + LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt + files located at the root of the source distribution. + These files may also be found in the public source + code repository located at: + https://github.com/libusb/hidapi . +********************************************************/ + +#ifndef HIDAPI_HIDCLASS_H +#define HIDAPI_HIDCLASS_H + +#ifdef HIDAPI_USE_DDK + +#include + +#else + +#include + +/* This part of the header mimics hidclass.h, + but only what is used by HIDAPI */ + +#define HID_OUT_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS) +#define IOCTL_HID_GET_FEATURE HID_OUT_CTL_CODE(100) +#define IOCTL_HID_GET_INPUT_REPORT HID_OUT_CTL_CODE(104) + +#endif + +#endif /* HIDAPI_HIDCLASS_H */ -- cgit v1.2.3