The Pedigree Project
0.1
src
modules
drivers
common
hid
HidUsages.h
1
/*
2
* Copyright (c) 2008-2014, Pedigree Developers
3
*
4
* Please see the CONTRIB file in the root of the source tree for a full
5
* list of contributors.
6
*
7
* Permission to use, copy, modify, and distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
10
*
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
*/
19
20
#ifndef HIDUSAGES_H
21
#define HIDUSAGES_H
22
23
#include "pedigree/kernel/processor/types.h"
24
25
namespace
HidUsagePages {
27
enum
HidUsagePages {
28
Undefined = 0x00,
29
GenericDesktop = 0x01,
30
Simulation = 0x02,
31
VR = 0x03,
32
Sport = 0x04,
33
Game = 0x05,
34
GenericDevice = 0x06,
35
Keyboard
= 0x07,
36
Led = 0x08,
37
Button = 0x09,
38
Ordinal = 0x0a,
39
Telephony = 0x0b,
40
Consumer = 0x0c,
41
Digitizer = 0x0d,
42
Pid = 0x0f,
43
Unicode = 0x10
44
};
45
};
// namespace HidUsagePages
46
47
namespace
HidUsages {
49
enum
HidUsages {
50
// Generic Desktop Page
51
Pointer = 0x01,
52
Mouse = 0x02,
53
Joystick = 0x04,
54
GamePad = 0x05,
55
Keyboard
= 0x06,
56
Keypad = 0x07,
57
X = 0x30,
58
Y = 0x31,
59
Z = 0x32,
60
Rx = 0x33,
61
Ry = 0x34,
62
Rz = 0x35,
63
Wheel = 0x38,
64
};
65
};
// namespace HidUsages
66
67
#endif
Keyboard
Definition
include/pedigree/kernel/machine/Keyboard.h:26
Generated on Sat Oct 3 2026 06:38:05 for The Pedigree Project by
1.9.8