blob: 3662c9f0a744e516ff370f1c7399295ed0df3fa1 [file] [log] [blame]
Simon Glass3b3fd2e2012-04-17 09:01:29 +00001/*
2 * Copyright (c) 1999-2002 Vojtech Pavlik
3 *
Tom Rinie2378802016-01-14 22:05:13 -05004 * SPDX-License-Identifier: GPL-2.0
Simon Glass3b3fd2e2012-04-17 09:01:29 +00005 */
6
7#ifndef _LINUX_INPUT_H
8#define _LINUX_INPUT_H
9
10/*
11 * Keys and buttons
12 *
13 * Most of the keys/buttons are modeled after USB HUT 1.12
14 * (see http://www.usb.org/developers/hidpage).
15 * Abbreviations in the comments:
16 * AC - Application Control
17 * AL - Application Launch Button
18 * SC - System Control
19 */
20
21#define KEY_RESERVED 0
22#define KEY_ESC 1
23#define KEY_1 2
24#define KEY_2 3
25#define KEY_3 4
26#define KEY_4 5
27#define KEY_5 6
28#define KEY_6 7
29#define KEY_7 8
30#define KEY_8 9
31#define KEY_9 10
32#define KEY_0 11
33#define KEY_MINUS 12
34#define KEY_EQUAL 13
35#define KEY_BACKSPACE 14
36#define KEY_TAB 15
37#define KEY_Q 16
38#define KEY_W 17
39#define KEY_E 18
40#define KEY_R 19
41#define KEY_T 20
42#define KEY_Y 21
43#define KEY_U 22
44#define KEY_I 23
45#define KEY_O 24
46#define KEY_P 25
47#define KEY_LEFTBRACE 26
48#define KEY_RIGHTBRACE 27
49#define KEY_ENTER 28
50#define KEY_LEFTCTRL 29
51#define KEY_A 30
52#define KEY_S 31
53#define KEY_D 32
54#define KEY_F 33
55#define KEY_G 34
56#define KEY_H 35
57#define KEY_J 36
58#define KEY_K 37
59#define KEY_L 38
60#define KEY_SEMICOLON 39
61#define KEY_APOSTROPHE 40
62#define KEY_GRAVE 41
63#define KEY_LEFTSHIFT 42
64#define KEY_BACKSLASH 43
65#define KEY_Z 44
66#define KEY_X 45
67#define KEY_C 46
68#define KEY_V 47
69#define KEY_B 48
70#define KEY_N 49
71#define KEY_M 50
72#define KEY_COMMA 51
73#define KEY_DOT 52
74#define KEY_SLASH 53
75#define KEY_RIGHTSHIFT 54
76#define KEY_KPASTERISK 55
77#define KEY_LEFTALT 56
78#define KEY_SPACE 57
79#define KEY_CAPSLOCK 58
80#define KEY_F1 59
81#define KEY_F2 60
82#define KEY_F3 61
83#define KEY_F4 62
84#define KEY_F5 63
85#define KEY_F6 64
86#define KEY_F7 65
87#define KEY_F8 66
88#define KEY_F9 67
89#define KEY_F10 68
90#define KEY_NUMLOCK 69
91#define KEY_SCROLLLOCK 70
92#define KEY_KP7 71
93#define KEY_KP8 72
94#define KEY_KP9 73
95#define KEY_KPMINUS 74
96#define KEY_KP4 75
97#define KEY_KP5 76
98#define KEY_KP6 77
99#define KEY_KPPLUS 78
100#define KEY_KP1 79
101#define KEY_KP2 80
102#define KEY_KP3 81
103#define KEY_KP0 82
104#define KEY_KPDOT 83
105
106#define KEY_ZENKAKUHANKAKU 85
107#define KEY_102ND 86
108#define KEY_F11 87
109#define KEY_F12 88
110#define KEY_RO 89
111#define KEY_KATAKANA 90
112#define KEY_HIRAGANA 91
113#define KEY_HENKAN 92
114#define KEY_KATAKANAHIRAGANA 93
115#define KEY_MUHENKAN 94
116#define KEY_KPJPCOMMA 95
117#define KEY_KPENTER 96
118#define KEY_RIGHTCTRL 97
119#define KEY_KPSLASH 98
120#define KEY_SYSRQ 99
121#define KEY_RIGHTALT 100
122#define KEY_LINEFEED 101
123#define KEY_HOME 102
124#define KEY_UP 103
125#define KEY_PAGEUP 104
126#define KEY_LEFT 105
127#define KEY_RIGHT 106
128#define KEY_END 107
129#define KEY_DOWN 108
130#define KEY_PAGEDOWN 109
131#define KEY_INSERT 110
132#define KEY_DELETE 111
133#define KEY_MACRO 112
134#define KEY_MUTE 113
135#define KEY_VOLUMEDOWN 114
136#define KEY_VOLUMEUP 115
137#define KEY_POWER 116 /* SC System Power Down */
138#define KEY_KPEQUAL 117
139#define KEY_KPPLUSMINUS 118
140#define KEY_PAUSE 119
141#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */
142
143#define KEY_KPCOMMA 121
144#define KEY_HANGEUL 122
145#define KEY_HANGUEL KEY_HANGEUL
146#define KEY_HANJA 123
147#define KEY_YEN 124
148#define KEY_LEFTMETA 125
149#define KEY_RIGHTMETA 126
150#define KEY_COMPOSE 127
151#define KEY_FN 0x1d0
152
153#endif