input-event-codes.h revision 337290
1305706Sgonzo/*-
2305706Sgonzo * Copyright (c) 2016 Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3324768Swulf * Copyright (c) 2015-2016 Vladimir Kondratyev <wulf@FreeBSD.org>
4305706Sgonzo * All rights reserved.
5305706Sgonzo *
6305706Sgonzo * Redistribution and use in source and binary forms, with or without
7305706Sgonzo * modification, are permitted provided that the following conditions
8305706Sgonzo * are met:
9305706Sgonzo * 1. Redistributions of source code must retain the above copyright
10305706Sgonzo *    notice, this list of conditions and the following disclaimer.
11305706Sgonzo * 2. Redistributions in binary form must reproduce the above copyright
12305706Sgonzo *    notice, this list of conditions and the following disclaimer in the
13305706Sgonzo *    documentation and/or other materials provided with the distribution.
14305706Sgonzo *
15305706Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16305706Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17305706Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18305706Sgonzo * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19305706Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20305706Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21305706Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22305706Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23305706Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24305706Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25305706Sgonzo * SUCH DAMAGE.
26305706Sgonzo *
27305706Sgonzo * $FreeBSD: stable/11/sys/dev/evdev/input-event-codes.h 337290 2018-08-04 12:40:59Z wulf $
28305706Sgonzo */
29305706Sgonzo
30305706Sgonzo#ifndef	_EVDEV_INPUT_EVENT_CODES_H
31305706Sgonzo#define	_EVDEV_INPUT_EVENT_CODES_H
32305706Sgonzo
33305706Sgonzo/*
34305706Sgonzo * Device properties and quirks
35305706Sgonzo */
36305706Sgonzo
37305706Sgonzo#define	INPUT_PROP_POINTER		0x00	/* needs a pointer */
38305706Sgonzo#define	INPUT_PROP_DIRECT		0x01	/* direct input devices */
39305706Sgonzo#define	INPUT_PROP_BUTTONPAD		0x02	/* has button(s) under pad */
40305706Sgonzo#define	INPUT_PROP_SEMI_MT		0x03	/* touch rectangle only */
41305706Sgonzo#define	INPUT_PROP_TOPBUTTONPAD		0x04	/* softbuttons at top of pad */
42305706Sgonzo#define	INPUT_PROP_POINTING_STICK	0x05	/* is a pointing stick */
43305706Sgonzo#define	INPUT_PROP_ACCELEROMETER	0x06	/* has accelerometer */
44305706Sgonzo
45305706Sgonzo#define	INPUT_PROP_MAX			0x1f
46305706Sgonzo#define	INPUT_PROP_CNT			(INPUT_PROP_MAX + 1)
47305706Sgonzo
48305706Sgonzo/*
49305706Sgonzo * Event types
50305706Sgonzo */
51305706Sgonzo
52305706Sgonzo#define	EV_SYN			0x00
53305706Sgonzo#define	EV_KEY			0x01
54305706Sgonzo#define	EV_REL			0x02
55305706Sgonzo#define	EV_ABS			0x03
56305706Sgonzo#define	EV_MSC			0x04
57305706Sgonzo#define	EV_SW			0x05
58305706Sgonzo#define	EV_LED			0x11
59305706Sgonzo#define	EV_SND			0x12
60305706Sgonzo#define	EV_REP			0x14
61305706Sgonzo#define	EV_FF			0x15
62305706Sgonzo#define	EV_PWR			0x16
63305706Sgonzo#define	EV_FF_STATUS		0x17
64305706Sgonzo#define	EV_MAX			0x1f
65305706Sgonzo#define	EV_CNT			(EV_MAX+1)
66305706Sgonzo
67305706Sgonzo/*
68305706Sgonzo * Synchronization events.
69305706Sgonzo */
70305706Sgonzo
71305706Sgonzo#define	SYN_REPORT		0
72305706Sgonzo#define	SYN_CONFIG		1
73305706Sgonzo#define	SYN_MT_REPORT		2
74305706Sgonzo#define	SYN_DROPPED		3
75305706Sgonzo#define	SYN_MAX			0xf
76305706Sgonzo#define	SYN_CNT			(SYN_MAX+1)
77305706Sgonzo
78305706Sgonzo/*
79305706Sgonzo * Keys and buttons
80305706Sgonzo */
81305706Sgonzo
82305706Sgonzo/*
83305706Sgonzo * Abbreviations in the comments:
84305706Sgonzo * AC - Application Control
85305706Sgonzo * AL - Application Launch Button
86305706Sgonzo * SC - System Control
87305706Sgonzo */
88305706Sgonzo
89305706Sgonzo#define	KEY_RESERVED		0
90305706Sgonzo#define	KEY_ESC			1
91305706Sgonzo#define	KEY_1			2
92305706Sgonzo#define	KEY_2			3
93305706Sgonzo#define	KEY_3			4
94305706Sgonzo#define	KEY_4			5
95305706Sgonzo#define	KEY_5			6
96305706Sgonzo#define	KEY_6			7
97305706Sgonzo#define	KEY_7			8
98305706Sgonzo#define	KEY_8			9
99305706Sgonzo#define	KEY_9			10
100305706Sgonzo#define	KEY_0			11
101305706Sgonzo#define	KEY_MINUS		12
102305706Sgonzo#define	KEY_EQUAL		13
103305706Sgonzo#define	KEY_BACKSPACE		14
104305706Sgonzo#define	KEY_TAB			15
105305706Sgonzo#define	KEY_Q			16
106305706Sgonzo#define	KEY_W			17
107305706Sgonzo#define	KEY_E			18
108305706Sgonzo#define	KEY_R			19
109305706Sgonzo#define	KEY_T			20
110305706Sgonzo#define	KEY_Y			21
111305706Sgonzo#define	KEY_U			22
112305706Sgonzo#define	KEY_I			23
113305706Sgonzo#define	KEY_O			24
114305706Sgonzo#define	KEY_P			25
115305706Sgonzo#define	KEY_LEFTBRACE		26
116305706Sgonzo#define	KEY_RIGHTBRACE		27
117305706Sgonzo#define	KEY_ENTER		28
118305706Sgonzo#define	KEY_LEFTCTRL		29
119305706Sgonzo#define	KEY_A			30
120305706Sgonzo#define	KEY_S			31
121305706Sgonzo#define	KEY_D			32
122305706Sgonzo#define	KEY_F			33
123305706Sgonzo#define	KEY_G			34
124305706Sgonzo#define	KEY_H			35
125305706Sgonzo#define	KEY_J			36
126305706Sgonzo#define	KEY_K			37
127305706Sgonzo#define	KEY_L			38
128305706Sgonzo#define	KEY_SEMICOLON		39
129305706Sgonzo#define	KEY_APOSTROPHE		40
130305706Sgonzo#define	KEY_GRAVE		41
131305706Sgonzo#define	KEY_LEFTSHIFT		42
132305706Sgonzo#define	KEY_BACKSLASH		43
133305706Sgonzo#define	KEY_Z			44
134305706Sgonzo#define	KEY_X			45
135305706Sgonzo#define	KEY_C			46
136305706Sgonzo#define	KEY_V			47
137305706Sgonzo#define	KEY_B			48
138305706Sgonzo#define	KEY_N			49
139305706Sgonzo#define	KEY_M			50
140305706Sgonzo#define	KEY_COMMA		51
141305706Sgonzo#define	KEY_DOT			52
142305706Sgonzo#define	KEY_SLASH		53
143305706Sgonzo#define	KEY_RIGHTSHIFT		54
144305706Sgonzo#define	KEY_KPASTERISK		55
145305706Sgonzo#define	KEY_LEFTALT		56
146305706Sgonzo#define	KEY_SPACE		57
147305706Sgonzo#define	KEY_CAPSLOCK		58
148305706Sgonzo#define	KEY_F1			59
149305706Sgonzo#define	KEY_F2			60
150305706Sgonzo#define	KEY_F3			61
151305706Sgonzo#define	KEY_F4			62
152305706Sgonzo#define	KEY_F5			63
153305706Sgonzo#define	KEY_F6			64
154305706Sgonzo#define	KEY_F7			65
155305706Sgonzo#define	KEY_F8			66
156305706Sgonzo#define	KEY_F9			67
157305706Sgonzo#define	KEY_F10			68
158305706Sgonzo#define	KEY_NUMLOCK		69
159305706Sgonzo#define	KEY_SCROLLLOCK		70
160305706Sgonzo#define	KEY_KP7			71
161305706Sgonzo#define	KEY_KP8			72
162305706Sgonzo#define	KEY_KP9			73
163305706Sgonzo#define	KEY_KPMINUS		74
164305706Sgonzo#define	KEY_KP4			75
165305706Sgonzo#define	KEY_KP5			76
166305706Sgonzo#define	KEY_KP6			77
167305706Sgonzo#define	KEY_KPPLUS		78
168305706Sgonzo#define	KEY_KP1			79
169305706Sgonzo#define	KEY_KP2			80
170305706Sgonzo#define	KEY_KP3			81
171305706Sgonzo#define	KEY_KP0			82
172305706Sgonzo#define	KEY_KPDOT		83
173305706Sgonzo
174305706Sgonzo#define	KEY_ZENKAKUHANKAKU	85
175305706Sgonzo#define	KEY_102ND		86
176305706Sgonzo#define	KEY_F11			87
177305706Sgonzo#define	KEY_F12			88
178305706Sgonzo#define	KEY_RO			89
179305706Sgonzo#define	KEY_KATAKANA		90
180305706Sgonzo#define	KEY_HIRAGANA		91
181305706Sgonzo#define	KEY_HENKAN		92
182305706Sgonzo#define	KEY_KATAKANAHIRAGANA	93
183305706Sgonzo#define	KEY_MUHENKAN		94
184305706Sgonzo#define	KEY_KPJPCOMMA		95
185305706Sgonzo#define	KEY_KPENTER		96
186305706Sgonzo#define	KEY_RIGHTCTRL		97
187305706Sgonzo#define	KEY_KPSLASH		98
188305706Sgonzo#define	KEY_SYSRQ		99
189305706Sgonzo#define	KEY_RIGHTALT		100
190305706Sgonzo#define	KEY_LINEFEED		101
191305706Sgonzo#define	KEY_HOME		102
192305706Sgonzo#define	KEY_UP			103
193305706Sgonzo#define	KEY_PAGEUP		104
194305706Sgonzo#define	KEY_LEFT		105
195305706Sgonzo#define	KEY_RIGHT		106
196305706Sgonzo#define	KEY_END			107
197305706Sgonzo#define	KEY_DOWN		108
198305706Sgonzo#define	KEY_PAGEDOWN		109
199305706Sgonzo#define	KEY_INSERT		110
200305706Sgonzo#define	KEY_DELETE		111
201305706Sgonzo#define	KEY_MACRO		112
202305706Sgonzo#define	KEY_MUTE		113
203305706Sgonzo#define	KEY_VOLUMEDOWN		114
204305706Sgonzo#define	KEY_VOLUMEUP		115
205305706Sgonzo#define	KEY_POWER		116	/* SC System Power Down */
206305706Sgonzo#define	KEY_KPEQUAL		117
207305706Sgonzo#define	KEY_KPPLUSMINUS		118
208305706Sgonzo#define	KEY_PAUSE		119
209305706Sgonzo#define	KEY_SCALE		120	/* AL Compiz Scale (Expose) */
210305706Sgonzo
211305706Sgonzo#define	KEY_KPCOMMA		121
212305706Sgonzo#define	KEY_HANGEUL		122
213305706Sgonzo#define	KEY_HANGUEL		KEY_HANGEUL
214305706Sgonzo#define	KEY_HANJA		123
215305706Sgonzo#define	KEY_YEN			124
216305706Sgonzo#define	KEY_LEFTMETA		125
217305706Sgonzo#define	KEY_RIGHTMETA		126
218305706Sgonzo#define	KEY_COMPOSE		127
219305706Sgonzo
220305706Sgonzo#define	KEY_STOP		128	/* AC Stop */
221305706Sgonzo#define	KEY_AGAIN		129
222305706Sgonzo#define	KEY_PROPS		130	/* AC Properties */
223305706Sgonzo#define	KEY_UNDO		131	/* AC Undo */
224305706Sgonzo#define	KEY_FRONT		132
225305706Sgonzo#define	KEY_COPY		133	/* AC Copy */
226305706Sgonzo#define	KEY_OPEN		134	/* AC Open */
227305706Sgonzo#define	KEY_PASTE		135	/* AC Paste */
228305706Sgonzo#define	KEY_FIND		136	/* AC Search */
229305706Sgonzo#define	KEY_CUT			137	/* AC Cut */
230305706Sgonzo#define	KEY_HELP		138	/* AL Integrated Help Center */
231305706Sgonzo#define	KEY_MENU		139	/* Menu (show menu) */
232305706Sgonzo#define	KEY_CALC		140	/* AL Calculator */
233305706Sgonzo#define	KEY_SETUP		141
234305706Sgonzo#define	KEY_SLEEP		142	/* SC System Sleep */
235305706Sgonzo#define	KEY_WAKEUP		143	/* System Wake Up */
236305706Sgonzo#define	KEY_FILE		144	/* AL Local Machine Browser */
237305706Sgonzo#define	KEY_SENDFILE		145
238305706Sgonzo#define	KEY_DELETEFILE		146
239305706Sgonzo#define	KEY_XFER		147
240305706Sgonzo#define	KEY_PROG1		148
241305706Sgonzo#define	KEY_PROG2		149
242305706Sgonzo#define	KEY_WWW			150	/* AL Internet Browser */
243305706Sgonzo#define	KEY_MSDOS		151
244305706Sgonzo#define	KEY_COFFEE		152	/* AL Terminal Lock/Screensaver */
245305706Sgonzo#define	KEY_SCREENLOCK		KEY_COFFEE
246305706Sgonzo#define	KEY_ROTATE_DISPLAY	153	/* Display orientation for e.g. tablets */
247305706Sgonzo#define	KEY_DIRECTION		KEY_ROTATE_DISPLAY
248305706Sgonzo#define	KEY_CYCLEWINDOWS	154
249305706Sgonzo#define	KEY_MAIL		155
250305706Sgonzo#define	KEY_BOOKMARKS		156	/* AC Bookmarks */
251305706Sgonzo#define	KEY_COMPUTER		157
252305706Sgonzo#define	KEY_BACK		158	/* AC Back */
253305706Sgonzo#define	KEY_FORWARD		159	/* AC Forward */
254305706Sgonzo#define	KEY_CLOSECD		160
255305706Sgonzo#define	KEY_EJECTCD		161
256305706Sgonzo#define	KEY_EJECTCLOSECD	162
257305706Sgonzo#define	KEY_NEXTSONG		163
258305706Sgonzo#define	KEY_PLAYPAUSE		164
259305706Sgonzo#define	KEY_PREVIOUSSONG	165
260305706Sgonzo#define	KEY_STOPCD		166
261305706Sgonzo#define	KEY_RECORD		167
262305706Sgonzo#define	KEY_REWIND		168
263305706Sgonzo#define	KEY_PHONE		169	/* Media Select Telephone */
264305706Sgonzo#define	KEY_ISO			170
265305706Sgonzo#define	KEY_CONFIG		171	/* AL Consumer Control Configuration */
266305706Sgonzo#define	KEY_HOMEPAGE		172	/* AC Home */
267305706Sgonzo#define	KEY_REFRESH		173	/* AC Refresh */
268305706Sgonzo#define	KEY_EXIT		174	/* AC Exit */
269305706Sgonzo#define	KEY_MOVE		175
270305706Sgonzo#define	KEY_EDIT		176
271305706Sgonzo#define	KEY_SCROLLUP		177
272305706Sgonzo#define	KEY_SCROLLDOWN		178
273305706Sgonzo#define	KEY_KPLEFTPAREN		179
274305706Sgonzo#define	KEY_KPRIGHTPAREN	180
275305706Sgonzo#define	KEY_NEW			181	/* AC New */
276305706Sgonzo#define	KEY_REDO		182	/* AC Redo/Repeat */
277305706Sgonzo
278305706Sgonzo#define	KEY_F13			183
279305706Sgonzo#define	KEY_F14			184
280305706Sgonzo#define	KEY_F15			185
281305706Sgonzo#define	KEY_F16			186
282305706Sgonzo#define	KEY_F17			187
283305706Sgonzo#define	KEY_F18			188
284305706Sgonzo#define	KEY_F19			189
285305706Sgonzo#define	KEY_F20			190
286305706Sgonzo#define	KEY_F21			191
287305706Sgonzo#define	KEY_F22			192
288305706Sgonzo#define	KEY_F23			193
289305706Sgonzo#define	KEY_F24			194
290305706Sgonzo
291305706Sgonzo#define	KEY_PLAYCD		200
292305706Sgonzo#define	KEY_PAUSECD		201
293305706Sgonzo#define	KEY_PROG3		202
294305706Sgonzo#define	KEY_PROG4		203
295305706Sgonzo#define	KEY_DASHBOARD		204	/* AL Dashboard */
296305706Sgonzo#define	KEY_SUSPEND		205
297305706Sgonzo#define	KEY_CLOSE		206	/* AC Close */
298305706Sgonzo#define	KEY_PLAY		207
299305706Sgonzo#define	KEY_FASTFORWARD		208
300305706Sgonzo#define	KEY_BASSBOOST		209
301305706Sgonzo#define	KEY_PRINT		210	/* AC Print */
302305706Sgonzo#define	KEY_HP			211
303305706Sgonzo#define	KEY_CAMERA		212
304305706Sgonzo#define	KEY_SOUND		213
305305706Sgonzo#define	KEY_QUESTION		214
306305706Sgonzo#define	KEY_EMAIL		215
307305706Sgonzo#define	KEY_CHAT		216
308305706Sgonzo#define	KEY_SEARCH		217
309305706Sgonzo#define	KEY_CONNECT		218
310305706Sgonzo#define	KEY_FINANCE		219	/* AL Checkbook/Finance */
311305706Sgonzo#define	KEY_SPORT		220
312305706Sgonzo#define	KEY_SHOP		221
313305706Sgonzo#define	KEY_ALTERASE		222
314305706Sgonzo#define	KEY_CANCEL		223	/* AC Cancel */
315305706Sgonzo#define	KEY_BRIGHTNESSDOWN	224
316305706Sgonzo#define	KEY_BRIGHTNESSUP	225
317305706Sgonzo#define	KEY_MEDIA		226
318305706Sgonzo
319305706Sgonzo#define	KEY_SWITCHVIDEOMODE	227	/* Cycle between available video
320305706Sgonzo					   outputs (Monitor/LCD/TV-out/etc) */
321305706Sgonzo#define	KEY_KBDILLUMTOGGLE	228
322305706Sgonzo#define	KEY_KBDILLUMDOWN	229
323305706Sgonzo#define	KEY_KBDILLUMUP		230
324305706Sgonzo
325305706Sgonzo#define	KEY_SEND		231	/* AC Send */
326305706Sgonzo#define	KEY_REPLY		232	/* AC Reply */
327305706Sgonzo#define	KEY_FORWARDMAIL		233	/* AC Forward Msg */
328305706Sgonzo#define	KEY_SAVE		234	/* AC Save */
329305706Sgonzo#define	KEY_DOCUMENTS		235
330305706Sgonzo
331305706Sgonzo#define	KEY_BATTERY		236
332305706Sgonzo
333305706Sgonzo#define	KEY_BLUETOOTH		237
334305706Sgonzo#define	KEY_WLAN		238
335305706Sgonzo#define	KEY_UWB			239
336305706Sgonzo
337305706Sgonzo#define	KEY_UNKNOWN		240
338305706Sgonzo
339305706Sgonzo#define	KEY_VIDEO_NEXT		241	/* drive next video source */
340305706Sgonzo#define	KEY_VIDEO_PREV		242	/* drive previous video source */
341305706Sgonzo#define	KEY_BRIGHTNESS_CYCLE	243	/* brightness up, after max is min */
342305706Sgonzo#define	KEY_BRIGHTNESS_AUTO	244	/* Set Auto Brightness: manual
343305706Sgonzo					  brightness control is off,
344305706Sgonzo					  rely on ambient */
345305706Sgonzo#define	KEY_BRIGHTNESS_ZERO	KEY_BRIGHTNESS_AUTO
346305706Sgonzo#define	KEY_DISPLAY_OFF		245	/* display device to off state */
347305706Sgonzo
348305706Sgonzo#define	KEY_WWAN		246	/* Wireless WAN (LTE, UMTS, GSM, etc.) */
349305706Sgonzo#define	KEY_WIMAX		KEY_WWAN
350305706Sgonzo#define	KEY_RFKILL		247	/* Key that controls all radios */
351305706Sgonzo
352305706Sgonzo#define	KEY_MICMUTE		248	/* Mute / unmute the microphone */
353305706Sgonzo
354305706Sgonzo/* Code 255 is reserved for special needs of AT keyboard driver */
355305706Sgonzo
356305706Sgonzo#define	BTN_MISC		0x100
357305706Sgonzo#define	BTN_0			0x100
358305706Sgonzo#define	BTN_1			0x101
359305706Sgonzo#define	BTN_2			0x102
360305706Sgonzo#define	BTN_3			0x103
361305706Sgonzo#define	BTN_4			0x104
362305706Sgonzo#define	BTN_5			0x105
363305706Sgonzo#define	BTN_6			0x106
364305706Sgonzo#define	BTN_7			0x107
365305706Sgonzo#define	BTN_8			0x108
366305706Sgonzo#define	BTN_9			0x109
367305706Sgonzo
368305706Sgonzo#define	BTN_MOUSE		0x110
369305706Sgonzo#define	BTN_LEFT		0x110
370305706Sgonzo#define	BTN_RIGHT		0x111
371305706Sgonzo#define	BTN_MIDDLE		0x112
372305706Sgonzo#define	BTN_SIDE		0x113
373305706Sgonzo#define	BTN_EXTRA		0x114
374305706Sgonzo#define	BTN_FORWARD		0x115
375305706Sgonzo#define	BTN_BACK		0x116
376305706Sgonzo#define	BTN_TASK		0x117
377305706Sgonzo
378305706Sgonzo#define	BTN_JOYSTICK		0x120
379305706Sgonzo#define	BTN_TRIGGER		0x120
380305706Sgonzo#define	BTN_THUMB		0x121
381305706Sgonzo#define	BTN_THUMB2		0x122
382305706Sgonzo#define	BTN_TOP			0x123
383305706Sgonzo#define	BTN_TOP2		0x124
384305706Sgonzo#define	BTN_PINKIE		0x125
385305706Sgonzo#define	BTN_BASE		0x126
386305706Sgonzo#define	BTN_BASE2		0x127
387305706Sgonzo#define	BTN_BASE3		0x128
388305706Sgonzo#define	BTN_BASE4		0x129
389305706Sgonzo#define	BTN_BASE5		0x12a
390305706Sgonzo#define	BTN_BASE6		0x12b
391305706Sgonzo#define	BTN_DEAD		0x12f
392305706Sgonzo
393305706Sgonzo#define	BTN_GAMEPAD		0x130
394305706Sgonzo#define	BTN_SOUTH		0x130
395305706Sgonzo#define	BTN_A			BTN_SOUTH
396305706Sgonzo#define	BTN_EAST		0x131
397305706Sgonzo#define	BTN_B			BTN_EAST
398305706Sgonzo#define	BTN_C			0x132
399305706Sgonzo#define	BTN_NORTH		0x133
400305706Sgonzo#define	BTN_X			BTN_NORTH
401305706Sgonzo#define	BTN_WEST		0x134
402305706Sgonzo#define	BTN_Y			BTN_WEST
403305706Sgonzo#define	BTN_Z			0x135
404305706Sgonzo#define	BTN_TL			0x136
405305706Sgonzo#define	BTN_TR			0x137
406305706Sgonzo#define	BTN_TL2			0x138
407305706Sgonzo#define	BTN_TR2			0x139
408305706Sgonzo#define	BTN_SELECT		0x13a
409305706Sgonzo#define	BTN_START		0x13b
410305706Sgonzo#define	BTN_MODE		0x13c
411305706Sgonzo#define	BTN_THUMBL		0x13d
412305706Sgonzo#define	BTN_THUMBR		0x13e
413305706Sgonzo
414305706Sgonzo#define	BTN_DIGI		0x140
415305706Sgonzo#define	BTN_TOOL_PEN		0x140
416305706Sgonzo#define	BTN_TOOL_RUBBER		0x141
417305706Sgonzo#define	BTN_TOOL_BRUSH		0x142
418305706Sgonzo#define	BTN_TOOL_PENCIL		0x143
419305706Sgonzo#define	BTN_TOOL_AIRBRUSH	0x144
420305706Sgonzo#define	BTN_TOOL_FINGER		0x145
421305706Sgonzo#define	BTN_TOOL_MOUSE		0x146
422305706Sgonzo#define	BTN_TOOL_LENS		0x147
423305706Sgonzo#define	BTN_TOOL_QUINTTAP	0x148	/* Five fingers on trackpad */
424337290Swulf#define	BTN_STYLUS3		0x149
425305706Sgonzo#define	BTN_TOUCH		0x14a
426305706Sgonzo#define	BTN_STYLUS		0x14b
427305706Sgonzo#define	BTN_STYLUS2		0x14c
428305706Sgonzo#define	BTN_TOOL_DOUBLETAP	0x14d
429305706Sgonzo#define	BTN_TOOL_TRIPLETAP	0x14e
430305706Sgonzo#define	BTN_TOOL_QUADTAP	0x14f	/* Four fingers on trackpad */
431305706Sgonzo
432305706Sgonzo#define	BTN_WHEEL		0x150
433305706Sgonzo#define	BTN_GEAR_DOWN		0x150
434305706Sgonzo#define	BTN_GEAR_UP		0x151
435305706Sgonzo
436305706Sgonzo#define	KEY_OK			0x160
437305706Sgonzo#define	KEY_SELECT		0x161
438305706Sgonzo#define	KEY_GOTO		0x162
439305706Sgonzo#define	KEY_CLEAR		0x163
440305706Sgonzo#define	KEY_POWER2		0x164
441305706Sgonzo#define	KEY_OPTION		0x165
442305706Sgonzo#define	KEY_INFO		0x166	/* AL OEM Features/Tips/Tutorial */
443305706Sgonzo#define	KEY_TIME		0x167
444305706Sgonzo#define	KEY_VENDOR		0x168
445305706Sgonzo#define	KEY_ARCHIVE		0x169
446305706Sgonzo#define	KEY_PROGRAM		0x16a	/* Media Select Program Guide */
447305706Sgonzo#define	KEY_CHANNEL		0x16b
448305706Sgonzo#define	KEY_FAVORITES		0x16c
449305706Sgonzo#define	KEY_EPG			0x16d
450305706Sgonzo#define	KEY_PVR			0x16e	/* Media Select Home */
451305706Sgonzo#define	KEY_MHP			0x16f
452305706Sgonzo#define	KEY_LANGUAGE		0x170
453305706Sgonzo#define	KEY_TITLE		0x171
454305706Sgonzo#define	KEY_SUBTITLE		0x172
455305706Sgonzo#define	KEY_ANGLE		0x173
456305706Sgonzo#define	KEY_ZOOM		0x174
457305706Sgonzo#define	KEY_MODE		0x175
458305706Sgonzo#define	KEY_KEYBOARD		0x176
459305706Sgonzo#define	KEY_SCREEN		0x177
460305706Sgonzo#define	KEY_PC			0x178	/* Media Select Computer */
461305706Sgonzo#define	KEY_TV			0x179	/* Media Select TV */
462305706Sgonzo#define	KEY_TV2			0x17a	/* Media Select Cable */
463305706Sgonzo#define	KEY_VCR			0x17b	/* Media Select VCR */
464305706Sgonzo#define	KEY_VCR2		0x17c	/* VCR Plus */
465305706Sgonzo#define	KEY_SAT			0x17d	/* Media Select Satellite */
466305706Sgonzo#define	KEY_SAT2		0x17e
467305706Sgonzo#define	KEY_CD			0x17f	/* Media Select CD */
468305706Sgonzo#define	KEY_TAPE		0x180	/* Media Select Tape */
469305706Sgonzo#define	KEY_RADIO		0x181
470305706Sgonzo#define	KEY_TUNER		0x182	/* Media Select Tuner */
471305706Sgonzo#define	KEY_PLAYER		0x183
472305706Sgonzo#define	KEY_TEXT		0x184
473305706Sgonzo#define	KEY_DVD			0x185	/* Media Select DVD */
474305706Sgonzo#define	KEY_AUX			0x186
475305706Sgonzo#define	KEY_MP3			0x187
476305706Sgonzo#define	KEY_AUDIO		0x188	/* AL Audio Browser */
477305706Sgonzo#define	KEY_VIDEO		0x189	/* AL Movie Browser */
478305706Sgonzo#define	KEY_DIRECTORY		0x18a
479305706Sgonzo#define	KEY_LIST		0x18b
480305706Sgonzo#define	KEY_MEMO		0x18c	/* Media Select Messages */
481305706Sgonzo#define	KEY_CALENDAR		0x18d
482305706Sgonzo#define	KEY_RED			0x18e
483305706Sgonzo#define	KEY_GREEN		0x18f
484305706Sgonzo#define	KEY_YELLOW		0x190
485305706Sgonzo#define	KEY_BLUE		0x191
486305706Sgonzo#define	KEY_CHANNELUP		0x192	/* Channel Increment */
487305706Sgonzo#define	KEY_CHANNELDOWN		0x193	/* Channel Decrement */
488305706Sgonzo#define	KEY_FIRST		0x194
489305706Sgonzo#define	KEY_LAST		0x195	/* Recall Last */
490305706Sgonzo#define	KEY_AB			0x196
491305706Sgonzo#define	KEY_NEXT		0x197
492305706Sgonzo#define	KEY_RESTART		0x198
493305706Sgonzo#define	KEY_SLOW		0x199
494305706Sgonzo#define	KEY_SHUFFLE		0x19a
495305706Sgonzo#define	KEY_BREAK		0x19b
496305706Sgonzo#define	KEY_PREVIOUS		0x19c
497305706Sgonzo#define	KEY_DIGITS		0x19d
498305706Sgonzo#define	KEY_TEEN		0x19e
499305706Sgonzo#define	KEY_TWEN		0x19f
500305706Sgonzo#define	KEY_VIDEOPHONE		0x1a0	/* Media Select Video Phone */
501305706Sgonzo#define	KEY_GAMES		0x1a1	/* Media Select Games */
502305706Sgonzo#define	KEY_ZOOMIN		0x1a2	/* AC Zoom In */
503305706Sgonzo#define	KEY_ZOOMOUT		0x1a3	/* AC Zoom Out */
504305706Sgonzo#define	KEY_ZOOMRESET		0x1a4	/* AC Zoom */
505305706Sgonzo#define	KEY_WORDPROCESSOR	0x1a5	/* AL Word Processor */
506305706Sgonzo#define	KEY_EDITOR		0x1a6	/* AL Text Editor */
507305706Sgonzo#define	KEY_SPREADSHEET		0x1a7	/* AL Spreadsheet */
508305706Sgonzo#define	KEY_GRAPHICSEDITOR	0x1a8	/* AL Graphics Editor */
509305706Sgonzo#define	KEY_PRESENTATION	0x1a9	/* AL Presentation App */
510305706Sgonzo#define	KEY_DATABASE		0x1aa	/* AL Database App */
511305706Sgonzo#define	KEY_NEWS		0x1ab	/* AL Newsreader */
512305706Sgonzo#define	KEY_VOICEMAIL		0x1ac	/* AL Voicemail */
513305706Sgonzo#define	KEY_ADDRESSBOOK		0x1ad	/* AL Contacts/Address Book */
514305706Sgonzo#define	KEY_MESSENGER		0x1ae	/* AL Instant Messaging */
515305706Sgonzo#define	KEY_DISPLAYTOGGLE	0x1af	/* Turn display (LCD) on and off */
516305706Sgonzo#define	KEY_BRIGHTNESS_TOGGLE	KEY_DISPLAYTOGGLE
517305706Sgonzo#define	KEY_SPELLCHECK		0x1b0   /* AL Spell Check */
518305706Sgonzo#define	KEY_LOGOFF		0x1b1   /* AL Logoff */
519305706Sgonzo
520305706Sgonzo#define	KEY_DOLLAR		0x1b2
521305706Sgonzo#define	KEY_EURO		0x1b3
522305706Sgonzo
523305706Sgonzo#define	KEY_FRAMEBACK		0x1b4	/* Consumer - transport controls */
524305706Sgonzo#define	KEY_FRAMEFORWARD	0x1b5
525305706Sgonzo#define	KEY_CONTEXT_MENU	0x1b6	/* GenDesc - system context menu */
526305706Sgonzo#define	KEY_MEDIA_REPEAT	0x1b7	/* Consumer - transport control */
527305706Sgonzo#define	KEY_10CHANNELSUP	0x1b8	/* 10 channels up (10+) */
528305706Sgonzo#define	KEY_10CHANNELSDOWN	0x1b9	/* 10 channels down (10-) */
529305706Sgonzo#define	KEY_IMAGES		0x1ba	/* AL Image Browser */
530305706Sgonzo
531305706Sgonzo#define	KEY_DEL_EOL		0x1c0
532305706Sgonzo#define	KEY_DEL_EOS		0x1c1
533305706Sgonzo#define	KEY_INS_LINE		0x1c2
534305706Sgonzo#define	KEY_DEL_LINE		0x1c3
535305706Sgonzo
536305706Sgonzo#define	KEY_FN			0x1d0
537305706Sgonzo#define	KEY_FN_ESC		0x1d1
538305706Sgonzo#define	KEY_FN_F1		0x1d2
539305706Sgonzo#define	KEY_FN_F2		0x1d3
540305706Sgonzo#define	KEY_FN_F3		0x1d4
541305706Sgonzo#define	KEY_FN_F4		0x1d5
542305706Sgonzo#define	KEY_FN_F5		0x1d6
543305706Sgonzo#define	KEY_FN_F6		0x1d7
544305706Sgonzo#define	KEY_FN_F7		0x1d8
545305706Sgonzo#define	KEY_FN_F8		0x1d9
546305706Sgonzo#define	KEY_FN_F9		0x1da
547305706Sgonzo#define	KEY_FN_F10		0x1db
548305706Sgonzo#define	KEY_FN_F11		0x1dc
549305706Sgonzo#define	KEY_FN_F12		0x1dd
550305706Sgonzo#define	KEY_FN_1		0x1de
551305706Sgonzo#define	KEY_FN_2		0x1df
552305706Sgonzo#define	KEY_FN_D		0x1e0
553305706Sgonzo#define	KEY_FN_E		0x1e1
554305706Sgonzo#define	KEY_FN_F		0x1e2
555305706Sgonzo#define	KEY_FN_S		0x1e3
556305706Sgonzo#define	KEY_FN_B		0x1e4
557305706Sgonzo
558305706Sgonzo#define	KEY_BRL_DOT1		0x1f1
559305706Sgonzo#define	KEY_BRL_DOT2		0x1f2
560305706Sgonzo#define	KEY_BRL_DOT3		0x1f3
561305706Sgonzo#define	KEY_BRL_DOT4		0x1f4
562305706Sgonzo#define	KEY_BRL_DOT5		0x1f5
563305706Sgonzo#define	KEY_BRL_DOT6		0x1f6
564305706Sgonzo#define	KEY_BRL_DOT7		0x1f7
565305706Sgonzo#define	KEY_BRL_DOT8		0x1f8
566305706Sgonzo#define	KEY_BRL_DOT9		0x1f9
567305706Sgonzo#define	KEY_BRL_DOT10		0x1fa
568305706Sgonzo
569305706Sgonzo#define	KEY_NUMERIC_0		0x200	/* used by phones, remote controls, */
570305706Sgonzo#define	KEY_NUMERIC_1		0x201	/* and other keypads */
571305706Sgonzo#define	KEY_NUMERIC_2		0x202
572305706Sgonzo#define	KEY_NUMERIC_3		0x203
573305706Sgonzo#define	KEY_NUMERIC_4		0x204
574305706Sgonzo#define	KEY_NUMERIC_5		0x205
575305706Sgonzo#define	KEY_NUMERIC_6		0x206
576305706Sgonzo#define	KEY_NUMERIC_7		0x207
577305706Sgonzo#define	KEY_NUMERIC_8		0x208
578305706Sgonzo#define	KEY_NUMERIC_9		0x209
579305706Sgonzo#define	KEY_NUMERIC_STAR	0x20a
580305706Sgonzo#define	KEY_NUMERIC_POUND	0x20b
581305706Sgonzo#define	KEY_NUMERIC_A		0x20c	/* Phone key A - HUT Telephony 0xb9 */
582305706Sgonzo#define	KEY_NUMERIC_B		0x20d
583305706Sgonzo#define	KEY_NUMERIC_C		0x20e
584305706Sgonzo#define	KEY_NUMERIC_D		0x20f
585305706Sgonzo
586305706Sgonzo#define	KEY_CAMERA_FOCUS	0x210
587305706Sgonzo#define	KEY_WPS_BUTTON		0x211	/* WiFi Protected Setup key */
588305706Sgonzo
589305706Sgonzo#define	KEY_TOUCHPAD_TOGGLE	0x212	/* Request switch touchpad on or off */
590305706Sgonzo#define	KEY_TOUCHPAD_ON		0x213
591305706Sgonzo#define	KEY_TOUCHPAD_OFF	0x214
592305706Sgonzo
593305706Sgonzo#define	KEY_CAMERA_ZOOMIN	0x215
594305706Sgonzo#define	KEY_CAMERA_ZOOMOUT	0x216
595305706Sgonzo#define	KEY_CAMERA_UP		0x217
596305706Sgonzo#define	KEY_CAMERA_DOWN		0x218
597305706Sgonzo#define	KEY_CAMERA_LEFT		0x219
598305706Sgonzo#define	KEY_CAMERA_RIGHT	0x21a
599305706Sgonzo
600305706Sgonzo#define	KEY_ATTENDANT_ON	0x21b
601305706Sgonzo#define	KEY_ATTENDANT_OFF	0x21c
602305706Sgonzo#define	KEY_ATTENDANT_TOGGLE	0x21d	/* Attendant call on or off */
603305706Sgonzo#define	KEY_LIGHTS_TOGGLE	0x21e	/* Reading light on or off */
604305706Sgonzo
605305706Sgonzo#define	BTN_DPAD_UP		0x220
606305706Sgonzo#define	BTN_DPAD_DOWN		0x221
607305706Sgonzo#define	BTN_DPAD_LEFT		0x222
608305706Sgonzo#define	BTN_DPAD_RIGHT		0x223
609305706Sgonzo
610305706Sgonzo#define	KEY_ALS_TOGGLE		0x230	/* Ambient light sensor */
611337290Swulf#define	KEY_ROTATE_LOCK_TOGGLE	0x231	/* Display rotation lock */
612305706Sgonzo
613305706Sgonzo#define	KEY_BUTTONCONFIG		0x240	/* AL Button Configuration */
614305706Sgonzo#define	KEY_TASKMANAGER		0x241	/* AL Task/Project Manager */
615305706Sgonzo#define	KEY_JOURNAL		0x242	/* AL Log/Journal/Timecard */
616305706Sgonzo#define	KEY_CONTROLPANEL		0x243	/* AL Control Panel */
617305706Sgonzo#define	KEY_APPSELECT		0x244	/* AL Select Task/Application */
618305706Sgonzo#define	KEY_SCREENSAVER		0x245	/* AL Screen Saver */
619305706Sgonzo#define	KEY_VOICECOMMAND		0x246	/* Listening Voice Command */
620337290Swulf#define	KEY_ASSISTANT		0x247	/* AL Context-aware desktop assistant */
621305706Sgonzo
622305706Sgonzo#define	KEY_BRIGHTNESS_MIN		0x250	/* Set Brightness to Minimum */
623305706Sgonzo#define	KEY_BRIGHTNESS_MAX		0x251	/* Set Brightness to Maximum */
624305706Sgonzo
625305706Sgonzo#define	KEY_KBDINPUTASSIST_PREV		0x260
626305706Sgonzo#define	KEY_KBDINPUTASSIST_NEXT		0x261
627305706Sgonzo#define	KEY_KBDINPUTASSIST_PREVGROUP		0x262
628305706Sgonzo#define	KEY_KBDINPUTASSIST_NEXTGROUP		0x263
629305706Sgonzo#define	KEY_KBDINPUTASSIST_ACCEPT		0x264
630305706Sgonzo#define	KEY_KBDINPUTASSIST_CANCEL		0x265
631305706Sgonzo
632337290Swulf/* Diagonal movement keys */
633337290Swulf#define	KEY_RIGHT_UP			0x266
634337290Swulf#define	KEY_RIGHT_DOWN			0x267
635337290Swulf#define	KEY_LEFT_UP			0x268
636337290Swulf#define	KEY_LEFT_DOWN			0x269
637337290Swulf
638337290Swulf#define	KEY_ROOT_MENU			0x26a	/* Show Device's Root Menu */
639337290Swulf/* Show Top Menu of the Media (e.g. DVD) */
640337290Swulf#define	KEY_MEDIA_TOP_MENU		0x26b
641337290Swulf#define	KEY_NUMERIC_11			0x26c
642337290Swulf#define	KEY_NUMERIC_12			0x26d
643337290Swulf/*
644337290Swulf * Toggle Audio Description: refers to an audio service that helps blind and
645337290Swulf * visually impaired consumers understand the action in a program. Note: in
646337290Swulf * some countries this is referred to as "Video Description".
647337290Swulf */
648337290Swulf#define	KEY_AUDIO_DESC			0x26e
649337290Swulf#define	KEY_3D_MODE			0x26f
650337290Swulf#define	KEY_NEXT_FAVORITE		0x270
651337290Swulf#define	KEY_STOP_RECORD			0x271
652337290Swulf#define	KEY_PAUSE_RECORD		0x272
653337290Swulf#define	KEY_VOD				0x273 /* Video on Demand */
654337290Swulf#define	KEY_UNMUTE			0x274
655337290Swulf#define	KEY_FASTREVERSE			0x275
656337290Swulf#define	KEY_SLOWREVERSE			0x276
657337290Swulf/*
658337290Swulf * Control a data application associated with the currently viewed channel,
659337290Swulf * e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.)
660337290Swulf */
661337290Swulf#define	KEY_DATA			0x277
662337290Swulf#define	KEY_ONSCREEN_KEYBOARD		0x278
663337290Swulf
664305706Sgonzo#define	BTN_TRIGGER_HAPPY		0x2c0
665305706Sgonzo#define	BTN_TRIGGER_HAPPY1		0x2c0
666305706Sgonzo#define	BTN_TRIGGER_HAPPY2		0x2c1
667305706Sgonzo#define	BTN_TRIGGER_HAPPY3		0x2c2
668305706Sgonzo#define	BTN_TRIGGER_HAPPY4		0x2c3
669305706Sgonzo#define	BTN_TRIGGER_HAPPY5		0x2c4
670305706Sgonzo#define	BTN_TRIGGER_HAPPY6		0x2c5
671305706Sgonzo#define	BTN_TRIGGER_HAPPY7		0x2c6
672305706Sgonzo#define	BTN_TRIGGER_HAPPY8		0x2c7
673305706Sgonzo#define	BTN_TRIGGER_HAPPY9		0x2c8
674305706Sgonzo#define	BTN_TRIGGER_HAPPY10		0x2c9
675305706Sgonzo#define	BTN_TRIGGER_HAPPY11		0x2ca
676305706Sgonzo#define	BTN_TRIGGER_HAPPY12		0x2cb
677305706Sgonzo#define	BTN_TRIGGER_HAPPY13		0x2cc
678305706Sgonzo#define	BTN_TRIGGER_HAPPY14		0x2cd
679305706Sgonzo#define	BTN_TRIGGER_HAPPY15		0x2ce
680305706Sgonzo#define	BTN_TRIGGER_HAPPY16		0x2cf
681305706Sgonzo#define	BTN_TRIGGER_HAPPY17		0x2d0
682305706Sgonzo#define	BTN_TRIGGER_HAPPY18		0x2d1
683305706Sgonzo#define	BTN_TRIGGER_HAPPY19		0x2d2
684305706Sgonzo#define	BTN_TRIGGER_HAPPY20		0x2d3
685305706Sgonzo#define	BTN_TRIGGER_HAPPY21		0x2d4
686305706Sgonzo#define	BTN_TRIGGER_HAPPY22		0x2d5
687305706Sgonzo#define	BTN_TRIGGER_HAPPY23		0x2d6
688305706Sgonzo#define	BTN_TRIGGER_HAPPY24		0x2d7
689305706Sgonzo#define	BTN_TRIGGER_HAPPY25		0x2d8
690305706Sgonzo#define	BTN_TRIGGER_HAPPY26		0x2d9
691305706Sgonzo#define	BTN_TRIGGER_HAPPY27		0x2da
692305706Sgonzo#define	BTN_TRIGGER_HAPPY28		0x2db
693305706Sgonzo#define	BTN_TRIGGER_HAPPY29		0x2dc
694305706Sgonzo#define	BTN_TRIGGER_HAPPY30		0x2dd
695305706Sgonzo#define	BTN_TRIGGER_HAPPY31		0x2de
696305706Sgonzo#define	BTN_TRIGGER_HAPPY32		0x2df
697305706Sgonzo#define	BTN_TRIGGER_HAPPY33		0x2e0
698305706Sgonzo#define	BTN_TRIGGER_HAPPY34		0x2e1
699305706Sgonzo#define	BTN_TRIGGER_HAPPY35		0x2e2
700305706Sgonzo#define	BTN_TRIGGER_HAPPY36		0x2e3
701305706Sgonzo#define	BTN_TRIGGER_HAPPY37		0x2e4
702305706Sgonzo#define	BTN_TRIGGER_HAPPY38		0x2e5
703305706Sgonzo#define	BTN_TRIGGER_HAPPY39		0x2e6
704305706Sgonzo#define	BTN_TRIGGER_HAPPY40		0x2e7
705305706Sgonzo
706305706Sgonzo/* We avoid low common keys in module aliases so they don't get huge. */
707305706Sgonzo#define	KEY_MIN_INTERESTING	KEY_MUTE
708305706Sgonzo#define	KEY_MAX			0x2ff
709305706Sgonzo#define	KEY_CNT			(KEY_MAX+1)
710305706Sgonzo
711305706Sgonzo/*
712305706Sgonzo * Relative axes
713305706Sgonzo */
714305706Sgonzo
715305706Sgonzo#define	REL_X			0x00
716305706Sgonzo#define	REL_Y			0x01
717305706Sgonzo#define	REL_Z			0x02
718305706Sgonzo#define	REL_RX			0x03
719305706Sgonzo#define	REL_RY			0x04
720305706Sgonzo#define	REL_RZ			0x05
721305706Sgonzo#define	REL_HWHEEL		0x06
722305706Sgonzo#define	REL_DIAL		0x07
723305706Sgonzo#define	REL_WHEEL		0x08
724305706Sgonzo#define	REL_MISC		0x09
725305706Sgonzo#define	REL_MAX			0x0f
726305706Sgonzo#define	REL_CNT			(REL_MAX+1)
727305706Sgonzo
728305706Sgonzo/*
729305706Sgonzo * Absolute axes
730305706Sgonzo */
731305706Sgonzo
732305706Sgonzo#define	ABS_X			0x00
733305706Sgonzo#define	ABS_Y			0x01
734305706Sgonzo#define	ABS_Z			0x02
735305706Sgonzo#define	ABS_RX			0x03
736305706Sgonzo#define	ABS_RY			0x04
737305706Sgonzo#define	ABS_RZ			0x05
738305706Sgonzo#define	ABS_THROTTLE		0x06
739305706Sgonzo#define	ABS_RUDDER		0x07
740305706Sgonzo#define	ABS_WHEEL		0x08
741305706Sgonzo#define	ABS_GAS			0x09
742305706Sgonzo#define	ABS_BRAKE		0x0a
743305706Sgonzo#define	ABS_HAT0X		0x10
744305706Sgonzo#define	ABS_HAT0Y		0x11
745305706Sgonzo#define	ABS_HAT1X		0x12
746305706Sgonzo#define	ABS_HAT1Y		0x13
747305706Sgonzo#define	ABS_HAT2X		0x14
748305706Sgonzo#define	ABS_HAT2Y		0x15
749305706Sgonzo#define	ABS_HAT3X		0x16
750305706Sgonzo#define	ABS_HAT3Y		0x17
751305706Sgonzo#define	ABS_PRESSURE		0x18
752305706Sgonzo#define	ABS_DISTANCE		0x19
753305706Sgonzo#define	ABS_TILT_X		0x1a
754305706Sgonzo#define	ABS_TILT_Y		0x1b
755305706Sgonzo#define	ABS_TOOL_WIDTH		0x1c
756305706Sgonzo
757305706Sgonzo#define	ABS_VOLUME		0x20
758305706Sgonzo
759305706Sgonzo#define	ABS_MISC		0x28
760305706Sgonzo
761305706Sgonzo#define	ABS_MT_SLOT		0x2f	/* MT slot being modified */
762305706Sgonzo#define	ABS_MT_TOUCH_MAJOR	0x30	/* Major axis of touching ellipse */
763305706Sgonzo#define	ABS_MT_TOUCH_MINOR	0x31	/* Minor axis (omit if circular) */
764305706Sgonzo#define	ABS_MT_WIDTH_MAJOR	0x32	/* Major axis of approaching ellipse */
765305706Sgonzo#define	ABS_MT_WIDTH_MINOR	0x33	/* Minor axis (omit if circular) */
766305706Sgonzo#define	ABS_MT_ORIENTATION	0x34	/* Ellipse orientation */
767305706Sgonzo#define	ABS_MT_POSITION_X	0x35	/* Center X touch position */
768305706Sgonzo#define	ABS_MT_POSITION_Y	0x36	/* Center Y touch position */
769305706Sgonzo#define	ABS_MT_TOOL_TYPE	0x37	/* Type of touching device */
770305706Sgonzo#define	ABS_MT_BLOB_ID		0x38	/* Group a set of packets as a blob */
771305706Sgonzo#define	ABS_MT_TRACKING_ID	0x39	/* Unique ID of initiated contact */
772305706Sgonzo#define	ABS_MT_PRESSURE		0x3a	/* Pressure on contact area */
773305706Sgonzo#define	ABS_MT_DISTANCE		0x3b	/* Contact hover distance */
774305706Sgonzo#define	ABS_MT_TOOL_X		0x3c	/* Center X tool position */
775305706Sgonzo#define	ABS_MT_TOOL_Y		0x3d	/* Center Y tool position */
776305706Sgonzo
777305706Sgonzo#define	ABS_MAX			0x3f
778305706Sgonzo#define	ABS_CNT			(ABS_MAX+1)
779305706Sgonzo
780305706Sgonzo/*
781305706Sgonzo * Switch events
782305706Sgonzo */
783305706Sgonzo
784305706Sgonzo#define	SW_LID			0x00  /* set = lid shut */
785305706Sgonzo#define	SW_TABLET_MODE		0x01  /* set = tablet mode */
786305706Sgonzo#define	SW_HEADPHONE_INSERT	0x02  /* set = inserted */
787305706Sgonzo#define	SW_RFKILL_ALL		0x03  /* rfkill master switch, type "any"
788305706Sgonzo					 set = radio enabled */
789305706Sgonzo#define	SW_RADIO		SW_RFKILL_ALL	/* deprecated */
790305706Sgonzo#define	SW_MICROPHONE_INSERT	0x04  /* set = inserted */
791305706Sgonzo#define	SW_DOCK			0x05  /* set = plugged into dock */
792305706Sgonzo#define	SW_LINEOUT_INSERT	0x06  /* set = inserted */
793305706Sgonzo#define	SW_JACK_PHYSICAL_INSERT 0x07  /* set = mechanical switch set */
794305706Sgonzo#define	SW_VIDEOOUT_INSERT	0x08  /* set = inserted */
795305706Sgonzo#define	SW_CAMERA_LENS_COVER	0x09  /* set = lens covered */
796305706Sgonzo#define	SW_KEYPAD_SLIDE		0x0a  /* set = keypad slide out */
797305706Sgonzo#define	SW_FRONT_PROXIMITY	0x0b  /* set = front proximity sensor active */
798305706Sgonzo#define	SW_ROTATE_LOCK		0x0c  /* set = rotate locked/disabled */
799305706Sgonzo#define	SW_LINEIN_INSERT	0x0d  /* set = inserted */
800305706Sgonzo#define	SW_MUTE_DEVICE		0x0e  /* set = device disabled */
801337290Swulf#define	SW_PEN_INSERTED		0x0f  /* set = pen inserted */
802305706Sgonzo#define	SW_MAX			0x0f
803305706Sgonzo#define	SW_CNT			(SW_MAX+1)
804305706Sgonzo
805305706Sgonzo/*
806305706Sgonzo * Misc events
807305706Sgonzo */
808305706Sgonzo
809305706Sgonzo#define	MSC_SERIAL		0x00
810305706Sgonzo#define	MSC_PULSELED		0x01
811305706Sgonzo#define	MSC_GESTURE		0x02
812305706Sgonzo#define	MSC_RAW			0x03
813305706Sgonzo#define	MSC_SCAN		0x04
814305706Sgonzo#define	MSC_TIMESTAMP		0x05
815305706Sgonzo#define	MSC_MAX			0x07
816305706Sgonzo#define	MSC_CNT			(MSC_MAX+1)
817305706Sgonzo
818305706Sgonzo/*
819305706Sgonzo * LEDs
820305706Sgonzo */
821305706Sgonzo
822305706Sgonzo#define	LED_NUML		0x00
823305706Sgonzo#define	LED_CAPSL		0x01
824305706Sgonzo#define	LED_SCROLLL		0x02
825305706Sgonzo#define	LED_COMPOSE		0x03
826305706Sgonzo#define	LED_KANA		0x04
827305706Sgonzo#define	LED_SLEEP		0x05
828305706Sgonzo#define	LED_SUSPEND		0x06
829305706Sgonzo#define	LED_MUTE		0x07
830305706Sgonzo#define	LED_MISC		0x08
831305706Sgonzo#define	LED_MAIL		0x09
832305706Sgonzo#define	LED_CHARGING		0x0a
833305706Sgonzo#define	LED_MAX			0x0f
834305706Sgonzo#define	LED_CNT			(LED_MAX+1)
835305706Sgonzo
836305706Sgonzo/*
837305706Sgonzo * Autorepeat values
838305706Sgonzo */
839305706Sgonzo
840305706Sgonzo#define	REP_DELAY		0x00
841305706Sgonzo#define	REP_PERIOD		0x01
842305706Sgonzo#define	REP_MAX			0x01
843305706Sgonzo#define	REP_CNT			(REP_MAX+1)
844305706Sgonzo
845305706Sgonzo/*
846305706Sgonzo * Sounds
847305706Sgonzo */
848305706Sgonzo
849305706Sgonzo#define	SND_CLICK		0x00
850305706Sgonzo#define	SND_BELL		0x01
851305706Sgonzo#define	SND_TONE		0x02
852305706Sgonzo#define	SND_MAX			0x07
853305706Sgonzo#define	SND_CNT			(SND_MAX+1)
854305706Sgonzo
855305706Sgonzo#endif /* _EVDEV_INPUT_EVENT_CODES_H */
856