Kaleidoscope
HID-Settings.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2014-2015 NicoHood
3 See the readme for credit to other people.
4 
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 THE SOFTWARE.
22 */
23 
24 // Include guard
25 #pragma once
26 
27 #define HID_REPORTID_NONE 0
28 
29 #ifndef HID_REPORTID_MOUSE
30 #define HID_REPORTID_MOUSE 1
31 #endif
32 
33 #ifndef HID_REPORTID_KEYBOARD
34 #define HID_REPORTID_KEYBOARD 2
35 #endif
36 
37 #ifndef HID_REPORTID_RAWHID
38 // This will not work properly in most cases.
39 // The number is just kept from the old number counting.
40 //#define HID_REPORTID_RAWHID 3
41 #endif
42 
43 #ifndef HID_REPORTID_CONSUMERCONTROL
44 #define HID_REPORTID_CONSUMERCONTROL 4
45 #endif
46 
47 #ifndef HID_REPORTID_SYSTEMCONTROL
48 #define HID_REPORTID_SYSTEMCONTROL 5
49 #endif
50 
51 #ifndef HID_REPORTID_GAMEPAD
52 #define HID_REPORTID_GAMEPAD 6
53 #endif
54 
55 #ifndef HID_REPORTID_MOUSE_ABSOLUTE
56 #define HID_REPORTID_MOUSE_ABSOLUTE 7
57 #endif
58 
59 #ifndef HID_REPORTID_NKRO_KEYBOARD
60 #define HID_REPORTID_NKRO_KEYBOARD 8
61 #endif
62 
63 
64 // Nico has submitted these definitions upstream, but they're not merged yet
65 // HID Request Type HID1.11 Page 51 7.2.1 Get_Report Request
66 #define HID_REPORT_TYPE_INPUT 1
67 #define HID_REPORT_TYPE_OUTPUT 2
68 #define HID_REPORT_TYPE_FEATURE 3