Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
input-event-codes.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Input event codes, for codes available in Linux, use the same values as in
7 * https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/input-event-codes.h
8 */
9
10#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_INPUT_EVENT_CODES_H_
11#define ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_INPUT_EVENT_CODES_H_
12
25#define INPUT_EV_KEY 0x01
26#define INPUT_EV_REL 0x02
27#define INPUT_EV_ABS 0x03
28#define INPUT_EV_MSC 0x04
29#define INPUT_EV_DEVICE 0xef
30#define INPUT_EV_VENDOR_START 0xf0
31#define INPUT_EV_VENDOR_STOP 0xff
39#define INPUT_KEY_RESERVED 0
41#define INPUT_KEY_0 11
42#define INPUT_KEY_1 2
43#define INPUT_KEY_2 3
44#define INPUT_KEY_3 4
45#define INPUT_KEY_4 5
46#define INPUT_KEY_5 6
47#define INPUT_KEY_6 7
48#define INPUT_KEY_7 8
49#define INPUT_KEY_8 9
50#define INPUT_KEY_9 10
51#define INPUT_KEY_A 30
52#define INPUT_KEY_APOSTROPHE 40
53#define INPUT_KEY_B 48
54#define INPUT_KEY_BACK 158
55#define INPUT_KEY_BACKSLASH 43
56#define INPUT_KEY_BACKSPACE 14
57#define INPUT_KEY_BLUETOOTH 237
58#define INPUT_KEY_BRIGHTNESSDOWN 224
59#define INPUT_KEY_BRIGHTNESSUP 225
60#define INPUT_KEY_C 46
61#define INPUT_KEY_CAPSLOCK 58
62#define INPUT_KEY_COFFEE 152
63#define INPUT_KEY_COMMA 51
64#define INPUT_KEY_COMPOSE 127
65#define INPUT_KEY_CONNECT 218
66#define INPUT_KEY_D 32
67#define INPUT_KEY_DELETE 111
68#define INPUT_KEY_DOT 52
69#define INPUT_KEY_DOWN 108
70#define INPUT_KEY_E 18
71#define INPUT_KEY_END 107
72#define INPUT_KEY_ENTER 28
73#define INPUT_KEY_EQUAL 13
74#define INPUT_KEY_ESC 1
75#define INPUT_KEY_F 33
76#define INPUT_KEY_F1 59
77#define INPUT_KEY_F10 68
78#define INPUT_KEY_F11 87
79#define INPUT_KEY_F12 88
80#define INPUT_KEY_F13 183
81#define INPUT_KEY_F14 184
82#define INPUT_KEY_F15 185
83#define INPUT_KEY_F16 186
84#define INPUT_KEY_F17 187
85#define INPUT_KEY_F18 188
86#define INPUT_KEY_F19 189
87#define INPUT_KEY_F2 60
88#define INPUT_KEY_F20 190
89#define INPUT_KEY_F21 191
90#define INPUT_KEY_F22 192
91#define INPUT_KEY_F23 193
92#define INPUT_KEY_F24 194
93#define INPUT_KEY_F3 61
94#define INPUT_KEY_F4 62
95#define INPUT_KEY_F5 63
96#define INPUT_KEY_F6 64
97#define INPUT_KEY_F7 65
98#define INPUT_KEY_F8 66
99#define INPUT_KEY_F9 67
100#define INPUT_KEY_FASTFORWARD 208
101#define INPUT_KEY_FORWARD 159
102#define INPUT_KEY_G 34
103#define INPUT_KEY_GRAVE 41
104#define INPUT_KEY_H 35
105#define INPUT_KEY_HOME 102
106#define INPUT_KEY_I 23
107#define INPUT_KEY_INSERT 110
108#define INPUT_KEY_J 36
109#define INPUT_KEY_K 37
110#define INPUT_KEY_KP0 82
111#define INPUT_KEY_KP1 79
112#define INPUT_KEY_KP2 80
113#define INPUT_KEY_KP3 81
114#define INPUT_KEY_KP4 75
115#define INPUT_KEY_KP5 76
116#define INPUT_KEY_KP6 77
117#define INPUT_KEY_KP7 71
118#define INPUT_KEY_KP8 72
119#define INPUT_KEY_KP9 73
120#define INPUT_KEY_KPASTERISK 55
121#define INPUT_KEY_KPCOMMA 121
122#define INPUT_KEY_KPDOT 83
123#define INPUT_KEY_KPENTER 96
124#define INPUT_KEY_KPEQUAL 117
125#define INPUT_KEY_KPMINUS 74
126#define INPUT_KEY_KPPLUS 78
127#define INPUT_KEY_KPPLUSMINUS 118
128#define INPUT_KEY_KPSLASH 98
129#define INPUT_KEY_L 38
130#define INPUT_KEY_LEFT 105
131#define INPUT_KEY_LEFTALT 56
132#define INPUT_KEY_LEFTBRACE 26
133#define INPUT_KEY_LEFTCTRL 29
134#define INPUT_KEY_LEFTMETA 125
135#define INPUT_KEY_LEFTSHIFT 42
136#define INPUT_KEY_M 50
137#define INPUT_KEY_MENU 139
138#define INPUT_KEY_MINUS 12
139#define INPUT_KEY_MUTE 113
140#define INPUT_KEY_N 49
141#define INPUT_KEY_NUMLOCK 69
142#define INPUT_KEY_O 24
143#define INPUT_KEY_P 25
144#define INPUT_KEY_PAGEDOWN 109
145#define INPUT_KEY_PAGEUP 104
146#define INPUT_KEY_PAUSE 119
147#define INPUT_KEY_PLAY 207
148#define INPUT_KEY_POWER 116
149#define INPUT_KEY_PRINT 210
150#define INPUT_KEY_Q 16
151#define INPUT_KEY_R 19
152#define INPUT_KEY_RIGHT 106
153#define INPUT_KEY_RIGHTALT 100
154#define INPUT_KEY_RIGHTBRACE 27
155#define INPUT_KEY_RIGHTCTRL 97
156#define INPUT_KEY_RIGHTMETA 126
157#define INPUT_KEY_RIGHTSHIFT 54
158#define INPUT_KEY_S 31
159#define INPUT_KEY_SCALE 120
160#define INPUT_KEY_SCROLLLOCK 70
161#define INPUT_KEY_SEMICOLON 39
162#define INPUT_KEY_SLASH 53
163#define INPUT_KEY_SLEEP 142
164#define INPUT_KEY_SPACE 57
165#define INPUT_KEY_SYSRQ 99
166#define INPUT_KEY_T 20
167#define INPUT_KEY_TAB 15
168#define INPUT_KEY_U 22
169#define INPUT_KEY_UP 103
170#define INPUT_KEY_UWB 239
171#define INPUT_KEY_V 47
172#define INPUT_KEY_VOLUMEDOWN 114
173#define INPUT_KEY_VOLUMEUP 115
174#define INPUT_KEY_W 17
175#define INPUT_KEY_WAKEUP 143
176#define INPUT_KEY_WLAN 238
177#define INPUT_KEY_X 45
178#define INPUT_KEY_Y 21
179#define INPUT_KEY_Z 44
188#define INPUT_BTN_0 0x100
189#define INPUT_BTN_1 0x101
190#define INPUT_BTN_2 0x102
191#define INPUT_BTN_3 0x103
192#define INPUT_BTN_4 0x104
193#define INPUT_BTN_5 0x105
194#define INPUT_BTN_6 0x106
195#define INPUT_BTN_7 0x107
196#define INPUT_BTN_8 0x108
197#define INPUT_BTN_9 0x109
198#define INPUT_BTN_A BTN_SOUTH
199#define INPUT_BTN_B BTN_EAST
200#define INPUT_BTN_BACK 0x116
201#define INPUT_BTN_C 0x132
202#define INPUT_BTN_DPAD_DOWN 0x221
203#define INPUT_BTN_DPAD_LEFT 0x222
204#define INPUT_BTN_DPAD_RIGHT 0x223
205#define INPUT_BTN_DPAD_UP 0x220
206#define INPUT_BTN_EAST 0x131
207#define INPUT_BTN_EXTRA 0x114
208#define INPUT_BTN_FORWARD 0x115
209#define INPUT_BTN_GEAR_DOWN 0x150
210#define INPUT_BTN_GEAR_UP 0x151
211#define INPUT_BTN_LEFT 0x110
212#define INPUT_BTN_MIDDLE 0x112
213#define INPUT_BTN_MODE 0x13c
214#define INPUT_BTN_NORTH 0x133
215#define INPUT_BTN_RIGHT 0x111
216#define INPUT_BTN_SELECT 0x13a
217#define INPUT_BTN_SIDE 0x113
218#define INPUT_BTN_SOUTH 0x130
219#define INPUT_BTN_START 0x13b
220#define INPUT_BTN_TASK 0x117
221#define INPUT_BTN_THUMBL 0x13d
222#define INPUT_BTN_THUMBR 0x13e
223#define INPUT_BTN_TL 0x136
224#define INPUT_BTN_TL2 0x138
225#define INPUT_BTN_TOUCH 0x14a
226#define INPUT_BTN_TR 0x137
227#define INPUT_BTN_TR2 0x139
228#define INPUT_BTN_WEST 0x134
229#define INPUT_BTN_X BTN_NORTH
230#define INPUT_BTN_Y BTN_WEST
231#define INPUT_BTN_Z 0x135
239#define INPUT_ABS_BRAKE 0x0a
240#define INPUT_ABS_GAS 0x09
241#define INPUT_ABS_MT_SLOT 0x2f
242#define INPUT_ABS_RUDDER 0x07
243#define INPUT_ABS_RX 0x03
244#define INPUT_ABS_RY 0x04
245#define INPUT_ABS_RZ 0x05
246#define INPUT_ABS_THROTTLE 0x06
247#define INPUT_ABS_WHEEL 0x08
248#define INPUT_ABS_X 0x00
249#define INPUT_ABS_Y 0x01
250#define INPUT_ABS_Z 0x02
258#define INPUT_REL_DIAL 0x07
259#define INPUT_REL_HWHEEL 0x06
260#define INPUT_REL_MISC 0x09
261#define INPUT_REL_RX 0x03
262#define INPUT_REL_RY 0x04
263#define INPUT_REL_RZ 0x05
264#define INPUT_REL_WHEEL 0x08
265#define INPUT_REL_X 0x00
266#define INPUT_REL_Y 0x01
267#define INPUT_REL_Z 0x02
275#define INPUT_MSC_SCAN 0x04
280#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_INPUT_EVENT_CODES_H_ */