input-event-codes.h revision 305706
1305706Sgonzo/*-
2305706Sgonzo * Copyright (c) 2016 Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3305706Sgonzo * Copyright (c) 2015-2016 Vladimir Kondratyev <wulf@cicgroup.ru>
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: head/sys/dev/evdev/input-event-codes.h 305706 2016-09-11 18:56:38Z gonzo $
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 */
424305706Sgonzo#define	BTN_TOUCH		0x14a
425305706Sgonzo#define	BTN_STYLUS		0x14b
426305706Sgonzo#define	BTN_STYLUS2		0x14c
427305706Sgonzo#define	BTN_TOOL_DOUBLETAP	0x14d
428305706Sgonzo#define	BTN_TOOL_TRIPLETAP	0x14e
429305706Sgonzo#define	BTN_TOOL_QUADTAP	0x14f	/* Four fingers on trackpad */
430305706Sgonzo
431305706Sgonzo#define	BTN_WHEEL		0x150
432305706Sgonzo#define	BTN_GEAR_DOWN		0x150
433305706Sgonzo#define	BTN_GEAR_UP		0x151
434305706Sgonzo
435305706Sgonzo#define	KEY_OK			0x160
436305706Sgonzo#define	KEY_SELECT		0x161
437305706Sgonzo#define	KEY_GOTO		0x162
438305706Sgonzo#define	KEY_CLEAR		0x163
439305706Sgonzo#define	KEY_POWER2		0x164
440305706Sgonzo#define	KEY_OPTION		0x165
441305706Sgonzo#define	KEY_INFO		0x166	/* AL OEM Features/Tips/Tutorial */
442305706Sgonzo#define	KEY_TIME		0x167
443305706Sgonzo#define	KEY_VENDOR		0x168
444305706Sgonzo#define	KEY_ARCHIVE		0x169
445305706Sgonzo#define	KEY_PROGRAM		0x16a	/* Media Select Program Guide */
446305706Sgonzo#define	KEY_CHANNEL		0x16b
447305706Sgonzo#define	KEY_FAVORITES		0x16c
448305706Sgonzo#define	KEY_EPG			0x16d
449305706Sgonzo#define	KEY_PVR			0x16e	/* Media Select Home */
450305706Sgonzo#define	KEY_MHP			0x16f
451305706Sgonzo#define	KEY_LANGUAGE		0x170
452305706Sgonzo#define	KEY_TITLE		0x171
453305706Sgonzo#define	KEY_SUBTITLE		0x172
454305706Sgonzo#define	KEY_ANGLE		0x173
455305706Sgonzo#define	KEY_ZOOM		0x174
456305706Sgonzo#define	KEY_MODE		0x175
457305706Sgonzo#define	KEY_KEYBOARD		0x176
458305706Sgonzo#define	KEY_SCREEN		0x177
459305706Sgonzo#define	KEY_PC			0x178	/* Media Select Computer */
460305706Sgonzo#define	KEY_TV			0x179	/* Media Select TV */
461305706Sgonzo#define	KEY_TV2			0x17a	/* Media Select Cable */
462305706Sgonzo#define	KEY_VCR			0x17b	/* Media Select VCR */
463305706Sgonzo#define	KEY_VCR2		0x17c	/* VCR Plus */
464305706Sgonzo#define	KEY_SAT			0x17d	/* Media Select Satellite */
465305706Sgonzo#define	KEY_SAT2		0x17e
466305706Sgonzo#define	KEY_CD			0x17f	/* Media Select CD */
467305706Sgonzo#define	KEY_TAPE		0x180	/* Media Select Tape */
468305706Sgonzo#define	KEY_RADIO		0x181
469305706Sgonzo#define	KEY_TUNER		0x182	/* Media Select Tuner */
470305706Sgonzo#define	KEY_PLAYER		0x183
471305706Sgonzo#define	KEY_TEXT		0x184
472305706Sgonzo#define	KEY_DVD			0x185	/* Media Select DVD */
473305706Sgonzo#define	KEY_AUX			0x186
474305706Sgonzo#define	KEY_MP3			0x187
475305706Sgonzo#define	KEY_AUDIO		0x188	/* AL Audio Browser */
476305706Sgonzo#define	KEY_VIDEO		0x189	/* AL Movie Browser */
477305706Sgonzo#define	KEY_DIRECTORY		0x18a
478305706Sgonzo#define	KEY_LIST		0x18b
479305706Sgonzo#define	KEY_MEMO		0x18c	/* Media Select Messages */
480305706Sgonzo#define	KEY_CALENDAR		0x18d
481305706Sgonzo#define	KEY_RED			0x18e
482305706Sgonzo#define	KEY_GREEN		0x18f
483305706Sgonzo#define	KEY_YELLOW		0x190
484305706Sgonzo#define	KEY_BLUE		0x191
485305706Sgonzo#define	KEY_CHANNELUP		0x192	/* Channel Increment */
486305706Sgonzo#define	KEY_CHANNELDOWN		0x193	/* Channel Decrement */
487305706Sgonzo#define	KEY_FIRST		0x194
488305706Sgonzo#define	KEY_LAST		0x195	/* Recall Last */
489305706Sgonzo#define	KEY_AB			0x196
490305706Sgonzo#define	KEY_NEXT		0x197
491305706Sgonzo#define	KEY_RESTART		0x198
492305706Sgonzo#define	KEY_SLOW		0x199
493305706Sgonzo#define	KEY_SHUFFLE		0x19a
494305706Sgonzo#define	KEY_BREAK		0x19b
495305706Sgonzo#define	KEY_PREVIOUS		0x19c
496305706Sgonzo#define	KEY_DIGITS		0x19d
497305706Sgonzo#define	KEY_TEEN		0x19e
498305706Sgonzo#define	KEY_TWEN		0x19f
499305706Sgonzo#define	KEY_VIDEOPHONE		0x1a0	/* Media Select Video Phone */
500305706Sgonzo#define	KEY_GAMES		0x1a1	/* Media Select Games */
501305706Sgonzo#define	KEY_ZOOMIN		0x1a2	/* AC Zoom In */
502305706Sgonzo#define	KEY_ZOOMOUT		0x1a3	/* AC Zoom Out */
503305706Sgonzo#define	KEY_ZOOMRESET		0x1a4	/* AC Zoom */
504305706Sgonzo#define	KEY_WORDPROCESSOR	0x1a5	/* AL Word Processor */
505305706Sgonzo#define	KEY_EDITOR		0x1a6	/* AL Text Editor */
506305706Sgonzo#define	KEY_SPREADSHEET		0x1a7	/* AL Spreadsheet */
507305706Sgonzo#define	KEY_GRAPHICSEDITOR	0x1a8	/* AL Graphics Editor */
508305706Sgonzo#define	KEY_PRESENTATION	0x1a9	/* AL Presentation App */
509305706Sgonzo#define	KEY_DATABASE		0x1aa	/* AL Database App */
510305706Sgonzo#define	KEY_NEWS		0x1ab	/* AL Newsreader */
511305706Sgonzo#define	KEY_VOICEMAIL		0x1ac	/* AL Voicemail */
512305706Sgonzo#define	KEY_ADDRESSBOOK		0x1ad	/* AL Contacts/Address Book */
513305706Sgonzo#define	KEY_MESSENGER		0x1ae	/* AL Instant Messaging */
514305706Sgonzo#define	KEY_DISPLAYTOGGLE	0x1af	/* Turn display (LCD) on and off */
515305706Sgonzo#define	KEY_BRIGHTNESS_TOGGLE	KEY_DISPLAYTOGGLE
516305706Sgonzo#define	KEY_SPELLCHECK		0x1b0   /* AL Spell Check */
517305706Sgonzo#define	KEY_LOGOFF		0x1b1   /* AL Logoff */
518305706Sgonzo
519305706Sgonzo#define	KEY_DOLLAR		0x1b2
520305706Sgonzo#define	KEY_EURO		0x1b3
521305706Sgonzo
522305706Sgonzo#define	KEY_FRAMEBACK		0x1b4	/* Consumer - transport controls */
523305706Sgonzo#define	KEY_FRAMEFORWARD	0x1b5
524305706Sgonzo#define	KEY_CONTEXT_MENU	0x1b6	/* GenDesc - system context menu */
525305706Sgonzo#define	KEY_MEDIA_REPEAT	0x1b7	/* Consumer - transport control */
526305706Sgonzo#define	KEY_10CHANNELSUP	0x1b8	/* 10 channels up (10+) */
527305706Sgonzo#define	KEY_10CHANNELSDOWN	0x1b9	/* 10 channels down (10-) */
528305706Sgonzo#define	KEY_IMAGES		0x1ba	/* AL Image Browser */
529305706Sgonzo
530305706Sgonzo#define	KEY_DEL_EOL		0x1c0
531305706Sgonzo#define	KEY_DEL_EOS		0x1c1
532305706Sgonzo#define	KEY_INS_LINE		0x1c2
533305706Sgonzo#define	KEY_DEL_LINE		0x1c3
534305706Sgonzo
535305706Sgonzo#define	KEY_FN			0x1d0
536305706Sgonzo#define	KEY_FN_ESC		0x1d1
537305706Sgonzo#define	KEY_FN_F1		0x1d2
538305706Sgonzo#define	KEY_FN_F2		0x1d3
539305706Sgonzo#define	KEY_FN_F3		0x1d4
540305706Sgonzo#define	KEY_FN_F4		0x1d5
541305706Sgonzo#define	KEY_FN_F5		0x1d6
542305706Sgonzo#define	KEY_FN_F6		0x1d7
543305706Sgonzo#define	KEY_FN_F7		0x1d8
544305706Sgonzo#define	KEY_FN_F8		0x1d9
545305706Sgonzo#define	KEY_FN_F9		0x1da
546305706Sgonzo#define	KEY_FN_F10		0x1db
547305706Sgonzo#define	KEY_FN_F11		0x1dc
548305706Sgonzo#define	KEY_FN_F12		0x1dd
549305706Sgonzo#define	KEY_FN_1		0x1de
550305706Sgonzo#define	KEY_FN_2		0x1df
551305706Sgonzo#define	KEY_FN_D		0x1e0
552305706Sgonzo#define	KEY_FN_E		0x1e1
553305706Sgonzo#define	KEY_FN_F		0x1e2
554305706Sgonzo#define	KEY_FN_S		0x1e3
555305706Sgonzo#define	KEY_FN_B		0x1e4
556305706Sgonzo
557305706Sgonzo#define	KEY_BRL_DOT1		0x1f1
558305706Sgonzo#define	KEY_BRL_DOT2		0x1f2
559305706Sgonzo#define	KEY_BRL_DOT3		0x1f3
560305706Sgonzo#define	KEY_BRL_DOT4		0x1f4
561305706Sgonzo#define	KEY_BRL_DOT5		0x1f5
562305706Sgonzo#define	KEY_BRL_DOT6		0x1f6
563305706Sgonzo#define	KEY_BRL_DOT7		0x1f7
564305706Sgonzo#define	KEY_BRL_DOT8		0x1f8
565305706Sgonzo#define	KEY_BRL_DOT9		0x1f9
566305706Sgonzo#define	KEY_BRL_DOT10		0x1fa
567305706Sgonzo
568305706Sgonzo#define	KEY_NUMERIC_0		0x200	/* used by phones, remote controls, */
569305706Sgonzo#define	KEY_NUMERIC_1		0x201	/* and other keypads */
570305706Sgonzo#define	KEY_NUMERIC_2		0x202
571305706Sgonzo#define	KEY_NUMERIC_3		0x203
572305706Sgonzo#define	KEY_NUMERIC_4		0x204
573305706Sgonzo#define	KEY_NUMERIC_5		0x205
574305706Sgonzo#define	KEY_NUMERIC_6		0x206
575305706Sgonzo#define	KEY_NUMERIC_7		0x207
576305706Sgonzo#define	KEY_NUMERIC_8		0x208
577305706Sgonzo#define	KEY_NUMERIC_9		0x209
578305706Sgonzo#define	KEY_NUMERIC_STAR	0x20a
579305706Sgonzo#define	KEY_NUMERIC_POUND	0x20b
580305706Sgonzo#define	KEY_NUMERIC_A		0x20c	/* Phone key A - HUT Telephony 0xb9 */
581305706Sgonzo#define	KEY_NUMERIC_B		0x20d
582305706Sgonzo#define	KEY_NUMERIC_C		0x20e
583305706Sgonzo#define	KEY_NUMERIC_D		0x20f
584305706Sgonzo
585305706Sgonzo#define	KEY_CAMERA_FOCUS	0x210
586305706Sgonzo#define	KEY_WPS_BUTTON		0x211	/* WiFi Protected Setup key */
587305706Sgonzo
588305706Sgonzo#define	KEY_TOUCHPAD_TOGGLE	0x212	/* Request switch touchpad on or off */
589305706Sgonzo#define	KEY_TOUCHPAD_ON		0x213
590305706Sgonzo#define	KEY_TOUCHPAD_OFF	0x214
591305706Sgonzo
592305706Sgonzo#define	KEY_CAMERA_ZOOMIN	0x215
593305706Sgonzo#define	KEY_CAMERA_ZOOMOUT	0x216
594305706Sgonzo#define	KEY_CAMERA_UP		0x217
595305706Sgonzo#define	KEY_CAMERA_DOWN		0x218
596305706Sgonzo#define	KEY_CAMERA_LEFT		0x219
597305706Sgonzo#define	KEY_CAMERA_RIGHT	0x21a
598305706Sgonzo
599305706Sgonzo#define	KEY_ATTENDANT_ON	0x21b
600305706Sgonzo#define	KEY_ATTENDANT_OFF	0x21c
601305706Sgonzo#define	KEY_ATTENDANT_TOGGLE	0x21d	/* Attendant call on or off */
602305706Sgonzo#define	KEY_LIGHTS_TOGGLE	0x21e	/* Reading light on or off */
603305706Sgonzo
604305706Sgonzo#define	BTN_DPAD_UP		0x220
605305706Sgonzo#define	BTN_DPAD_DOWN		0x221
606305706Sgonzo#define	BTN_DPAD_LEFT		0x222
607305706Sgonzo#define	BTN_DPAD_RIGHT		0x223
608305706Sgonzo
609305706Sgonzo#define	KEY_ALS_TOGGLE		0x230	/* Ambient light sensor */
610305706Sgonzo
611305706Sgonzo#define	KEY_BUTTONCONFIG		0x240	/* AL Button Configuration */
612305706Sgonzo#define	KEY_TASKMANAGER		0x241	/* AL Task/Project Manager */
613305706Sgonzo#define	KEY_JOURNAL		0x242	/* AL Log/Journal/Timecard */
614305706Sgonzo#define	KEY_CONTROLPANEL		0x243	/* AL Control Panel */
615305706Sgonzo#define	KEY_APPSELECT		0x244	/* AL Select Task/Application */
616305706Sgonzo#define	KEY_SCREENSAVER		0x245	/* AL Screen Saver */
617305706Sgonzo#define	KEY_VOICECOMMAND		0x246	/* Listening Voice Command */
618305706Sgonzo
619305706Sgonzo#define	KEY_BRIGHTNESS_MIN		0x250	/* Set Brightness to Minimum */
620305706Sgonzo#define	KEY_BRIGHTNESS_MAX		0x251	/* Set Brightness to Maximum */
621305706Sgonzo
622305706Sgonzo#define	KEY_KBDINPUTASSIST_PREV		0x260
623305706Sgonzo#define	KEY_KBDINPUTASSIST_NEXT		0x261
624305706Sgonzo#define	KEY_KBDINPUTASSIST_PREVGROUP		0x262
625305706Sgonzo#define	KEY_KBDINPUTASSIST_NEXTGROUP		0x263
626305706Sgonzo#define	KEY_KBDINPUTASSIST_ACCEPT		0x264
627305706Sgonzo#define	KEY_KBDINPUTASSIST_CANCEL		0x265
628305706Sgonzo
629305706Sgonzo#define	BTN_TRIGGER_HAPPY		0x2c0
630305706Sgonzo#define	BTN_TRIGGER_HAPPY1		0x2c0
631305706Sgonzo#define	BTN_TRIGGER_HAPPY2		0x2c1
632305706Sgonzo#define	BTN_TRIGGER_HAPPY3		0x2c2
633305706Sgonzo#define	BTN_TRIGGER_HAPPY4		0x2c3
634305706Sgonzo#define	BTN_TRIGGER_HAPPY5		0x2c4
635305706Sgonzo#define	BTN_TRIGGER_HAPPY6		0x2c5
636305706Sgonzo#define	BTN_TRIGGER_HAPPY7		0x2c6
637305706Sgonzo#define	BTN_TRIGGER_HAPPY8		0x2c7
638305706Sgonzo#define	BTN_TRIGGER_HAPPY9		0x2c8
639305706Sgonzo#define	BTN_TRIGGER_HAPPY10		0x2c9
640305706Sgonzo#define	BTN_TRIGGER_HAPPY11		0x2ca
641305706Sgonzo#define	BTN_TRIGGER_HAPPY12		0x2cb
642305706Sgonzo#define	BTN_TRIGGER_HAPPY13		0x2cc
643305706Sgonzo#define	BTN_TRIGGER_HAPPY14		0x2cd
644305706Sgonzo#define	BTN_TRIGGER_HAPPY15		0x2ce
645305706Sgonzo#define	BTN_TRIGGER_HAPPY16		0x2cf
646305706Sgonzo#define	BTN_TRIGGER_HAPPY17		0x2d0
647305706Sgonzo#define	BTN_TRIGGER_HAPPY18		0x2d1
648305706Sgonzo#define	BTN_TRIGGER_HAPPY19		0x2d2
649305706Sgonzo#define	BTN_TRIGGER_HAPPY20		0x2d3
650305706Sgonzo#define	BTN_TRIGGER_HAPPY21		0x2d4
651305706Sgonzo#define	BTN_TRIGGER_HAPPY22		0x2d5
652305706Sgonzo#define	BTN_TRIGGER_HAPPY23		0x2d6
653305706Sgonzo#define	BTN_TRIGGER_HAPPY24		0x2d7
654305706Sgonzo#define	BTN_TRIGGER_HAPPY25		0x2d8
655305706Sgonzo#define	BTN_TRIGGER_HAPPY26		0x2d9
656305706Sgonzo#define	BTN_TRIGGER_HAPPY27		0x2da
657305706Sgonzo#define	BTN_TRIGGER_HAPPY28		0x2db
658305706Sgonzo#define	BTN_TRIGGER_HAPPY29		0x2dc
659305706Sgonzo#define	BTN_TRIGGER_HAPPY30		0x2dd
660305706Sgonzo#define	BTN_TRIGGER_HAPPY31		0x2de
661305706Sgonzo#define	BTN_TRIGGER_HAPPY32		0x2df
662305706Sgonzo#define	BTN_TRIGGER_HAPPY33		0x2e0
663305706Sgonzo#define	BTN_TRIGGER_HAPPY34		0x2e1
664305706Sgonzo#define	BTN_TRIGGER_HAPPY35		0x2e2
665305706Sgonzo#define	BTN_TRIGGER_HAPPY36		0x2e3
666305706Sgonzo#define	BTN_TRIGGER_HAPPY37		0x2e4
667305706Sgonzo#define	BTN_TRIGGER_HAPPY38		0x2e5
668305706Sgonzo#define	BTN_TRIGGER_HAPPY39		0x2e6
669305706Sgonzo#define	BTN_TRIGGER_HAPPY40		0x2e7
670305706Sgonzo
671305706Sgonzo/* We avoid low common keys in module aliases so they don't get huge. */
672305706Sgonzo#define	KEY_MIN_INTERESTING	KEY_MUTE
673305706Sgonzo#define	KEY_MAX			0x2ff
674305706Sgonzo#define	KEY_CNT			(KEY_MAX+1)
675305706Sgonzo
676305706Sgonzo/*
677305706Sgonzo * Relative axes
678305706Sgonzo */
679305706Sgonzo
680305706Sgonzo#define	REL_X			0x00
681305706Sgonzo#define	REL_Y			0x01
682305706Sgonzo#define	REL_Z			0x02
683305706Sgonzo#define	REL_RX			0x03
684305706Sgonzo#define	REL_RY			0x04
685305706Sgonzo#define	REL_RZ			0x05
686305706Sgonzo#define	REL_HWHEEL		0x06
687305706Sgonzo#define	REL_DIAL		0x07
688305706Sgonzo#define	REL_WHEEL		0x08
689305706Sgonzo#define	REL_MISC		0x09
690305706Sgonzo#define	REL_MAX			0x0f
691305706Sgonzo#define	REL_CNT			(REL_MAX+1)
692305706Sgonzo
693305706Sgonzo/*
694305706Sgonzo * Absolute axes
695305706Sgonzo */
696305706Sgonzo
697305706Sgonzo#define	ABS_X			0x00
698305706Sgonzo#define	ABS_Y			0x01
699305706Sgonzo#define	ABS_Z			0x02
700305706Sgonzo#define	ABS_RX			0x03
701305706Sgonzo#define	ABS_RY			0x04
702305706Sgonzo#define	ABS_RZ			0x05
703305706Sgonzo#define	ABS_THROTTLE		0x06
704305706Sgonzo#define	ABS_RUDDER		0x07
705305706Sgonzo#define	ABS_WHEEL		0x08
706305706Sgonzo#define	ABS_GAS			0x09
707305706Sgonzo#define	ABS_BRAKE		0x0a
708305706Sgonzo#define	ABS_HAT0X		0x10
709305706Sgonzo#define	ABS_HAT0Y		0x11
710305706Sgonzo#define	ABS_HAT1X		0x12
711305706Sgonzo#define	ABS_HAT1Y		0x13
712305706Sgonzo#define	ABS_HAT2X		0x14
713305706Sgonzo#define	ABS_HAT2Y		0x15
714305706Sgonzo#define	ABS_HAT3X		0x16
715305706Sgonzo#define	ABS_HAT3Y		0x17
716305706Sgonzo#define	ABS_PRESSURE		0x18
717305706Sgonzo#define	ABS_DISTANCE		0x19
718305706Sgonzo#define	ABS_TILT_X		0x1a
719305706Sgonzo#define	ABS_TILT_Y		0x1b
720305706Sgonzo#define	ABS_TOOL_WIDTH		0x1c
721305706Sgonzo
722305706Sgonzo#define	ABS_VOLUME		0x20
723305706Sgonzo
724305706Sgonzo#define	ABS_MISC		0x28
725305706Sgonzo
726305706Sgonzo#define	ABS_MT_SLOT		0x2f	/* MT slot being modified */
727305706Sgonzo#define	ABS_MT_TOUCH_MAJOR	0x30	/* Major axis of touching ellipse */
728305706Sgonzo#define	ABS_MT_TOUCH_MINOR	0x31	/* Minor axis (omit if circular) */
729305706Sgonzo#define	ABS_MT_WIDTH_MAJOR	0x32	/* Major axis of approaching ellipse */
730305706Sgonzo#define	ABS_MT_WIDTH_MINOR	0x33	/* Minor axis (omit if circular) */
731305706Sgonzo#define	ABS_MT_ORIENTATION	0x34	/* Ellipse orientation */
732305706Sgonzo#define	ABS_MT_POSITION_X	0x35	/* Center X touch position */
733305706Sgonzo#define	ABS_MT_POSITION_Y	0x36	/* Center Y touch position */
734305706Sgonzo#define	ABS_MT_TOOL_TYPE	0x37	/* Type of touching device */
735305706Sgonzo#define	ABS_MT_BLOB_ID		0x38	/* Group a set of packets as a blob */
736305706Sgonzo#define	ABS_MT_TRACKING_ID	0x39	/* Unique ID of initiated contact */
737305706Sgonzo#define	ABS_MT_PRESSURE		0x3a	/* Pressure on contact area */
738305706Sgonzo#define	ABS_MT_DISTANCE		0x3b	/* Contact hover distance */
739305706Sgonzo#define	ABS_MT_TOOL_X		0x3c	/* Center X tool position */
740305706Sgonzo#define	ABS_MT_TOOL_Y		0x3d	/* Center Y tool position */
741305706Sgonzo
742305706Sgonzo#define	ABS_MAX			0x3f
743305706Sgonzo#define	ABS_CNT			(ABS_MAX+1)
744305706Sgonzo
745305706Sgonzo/*
746305706Sgonzo * Switch events
747305706Sgonzo */
748305706Sgonzo
749305706Sgonzo#define	SW_LID			0x00  /* set = lid shut */
750305706Sgonzo#define	SW_TABLET_MODE		0x01  /* set = tablet mode */
751305706Sgonzo#define	SW_HEADPHONE_INSERT	0x02  /* set = inserted */
752305706Sgonzo#define	SW_RFKILL_ALL		0x03  /* rfkill master switch, type "any"
753305706Sgonzo					 set = radio enabled */
754305706Sgonzo#define	SW_RADIO		SW_RFKILL_ALL	/* deprecated */
755305706Sgonzo#define	SW_MICROPHONE_INSERT	0x04  /* set = inserted */
756305706Sgonzo#define	SW_DOCK			0x05  /* set = plugged into dock */
757305706Sgonzo#define	SW_LINEOUT_INSERT	0x06  /* set = inserted */
758305706Sgonzo#define	SW_JACK_PHYSICAL_INSERT 0x07  /* set = mechanical switch set */
759305706Sgonzo#define	SW_VIDEOOUT_INSERT	0x08  /* set = inserted */
760305706Sgonzo#define	SW_CAMERA_LENS_COVER	0x09  /* set = lens covered */
761305706Sgonzo#define	SW_KEYPAD_SLIDE		0x0a  /* set = keypad slide out */
762305706Sgonzo#define	SW_FRONT_PROXIMITY	0x0b  /* set = front proximity sensor active */
763305706Sgonzo#define	SW_ROTATE_LOCK		0x0c  /* set = rotate locked/disabled */
764305706Sgonzo#define	SW_LINEIN_INSERT	0x0d  /* set = inserted */
765305706Sgonzo#define	SW_MUTE_DEVICE		0x0e  /* set = device disabled */
766305706Sgonzo#define	SW_MAX			0x0f
767305706Sgonzo#define	SW_CNT			(SW_MAX+1)
768305706Sgonzo
769305706Sgonzo/*
770305706Sgonzo * Misc events
771305706Sgonzo */
772305706Sgonzo
773305706Sgonzo#define	MSC_SERIAL		0x00
774305706Sgonzo#define	MSC_PULSELED		0x01
775305706Sgonzo#define	MSC_GESTURE		0x02
776305706Sgonzo#define	MSC_RAW			0x03
777305706Sgonzo#define	MSC_SCAN		0x04
778305706Sgonzo#define	MSC_TIMESTAMP		0x05
779305706Sgonzo#define	MSC_MAX			0x07
780305706Sgonzo#define	MSC_CNT			(MSC_MAX+1)
781305706Sgonzo
782305706Sgonzo/*
783305706Sgonzo * LEDs
784305706Sgonzo */
785305706Sgonzo
786305706Sgonzo#define	LED_NUML		0x00
787305706Sgonzo#define	LED_CAPSL		0x01
788305706Sgonzo#define	LED_SCROLLL		0x02
789305706Sgonzo#define	LED_COMPOSE		0x03
790305706Sgonzo#define	LED_KANA		0x04
791305706Sgonzo#define	LED_SLEEP		0x05
792305706Sgonzo#define	LED_SUSPEND		0x06
793305706Sgonzo#define	LED_MUTE		0x07
794305706Sgonzo#define	LED_MISC		0x08
795305706Sgonzo#define	LED_MAIL		0x09
796305706Sgonzo#define	LED_CHARGING		0x0a
797305706Sgonzo#define	LED_MAX			0x0f
798305706Sgonzo#define	LED_CNT			(LED_MAX+1)
799305706Sgonzo
800305706Sgonzo/*
801305706Sgonzo * Autorepeat values
802305706Sgonzo */
803305706Sgonzo
804305706Sgonzo#define	REP_DELAY		0x00
805305706Sgonzo#define	REP_PERIOD		0x01
806305706Sgonzo#define	REP_MAX			0x01
807305706Sgonzo#define	REP_CNT			(REP_MAX+1)
808305706Sgonzo
809305706Sgonzo/*
810305706Sgonzo * Sounds
811305706Sgonzo */
812305706Sgonzo
813305706Sgonzo#define	SND_CLICK		0x00
814305706Sgonzo#define	SND_BELL		0x01
815305706Sgonzo#define	SND_TONE		0x02
816305706Sgonzo#define	SND_MAX			0x07
817305706Sgonzo#define	SND_CNT			(SND_MAX+1)
818305706Sgonzo
819305706Sgonzo#endif /* _EVDEV_INPUT_EVENT_CODES_H */
820