Zephyr Project API
3.4.0
A Scalable Open Source RTOS
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_VENDOR_START 0xf0
30
#define INPUT_EV_VENDOR_STOP 0xff
38
#define INPUT_KEY_0 11
39
#define INPUT_KEY_1 2
40
#define INPUT_KEY_2 3
41
#define INPUT_KEY_3 4
42
#define INPUT_KEY_4 5
43
#define INPUT_KEY_5 6
44
#define INPUT_KEY_6 7
45
#define INPUT_KEY_7 8
46
#define INPUT_KEY_8 9
47
#define INPUT_KEY_9 10
48
#define INPUT_KEY_A 30
49
#define INPUT_KEY_B 48
50
#define INPUT_KEY_C 46
51
#define INPUT_KEY_D 32
52
#define INPUT_KEY_E 18
53
#define INPUT_KEY_F 33
54
#define INPUT_KEY_G 34
55
#define INPUT_KEY_H 35
56
#define INPUT_KEY_I 23
57
#define INPUT_KEY_J 36
58
#define INPUT_KEY_K 37
59
#define INPUT_KEY_L 38
60
#define INPUT_KEY_M 50
61
#define INPUT_KEY_N 49
62
#define INPUT_KEY_O 24
63
#define INPUT_KEY_P 25
64
#define INPUT_KEY_Q 16
65
#define INPUT_KEY_R 19
66
#define INPUT_KEY_S 31
67
#define INPUT_KEY_T 20
68
#define INPUT_KEY_U 22
69
#define INPUT_KEY_V 47
70
#define INPUT_KEY_VOLUMEDOWN 114
71
#define INPUT_KEY_VOLUMEUP 115
72
#define INPUT_KEY_W 17
73
#define INPUT_KEY_X 45
74
#define INPUT_KEY_Y 21
75
#define INPUT_KEY_Z 44
83
#define INPUT_BTN_DPAD_DOWN 0x221
84
#define INPUT_BTN_DPAD_LEFT 0x222
85
#define INPUT_BTN_DPAD_RIGHT 0x223
86
#define INPUT_BTN_DPAD_UP 0x220
87
#define INPUT_BTN_EAST 0x131
88
#define INPUT_BTN_LEFT 0x110
89
#define INPUT_BTN_MIDDLE 0x112
90
#define INPUT_BTN_MODE 0x13c
91
#define INPUT_BTN_NORTH 0x133
92
#define INPUT_BTN_RIGHT 0x111
93
#define INPUT_BTN_SELECT 0x13a
94
#define INPUT_BTN_SOUTH 0x130
95
#define INPUT_BTN_START 0x13b
96
#define INPUT_BTN_THUMBL 0x13d
97
#define INPUT_BTN_THUMBR 0x13e
98
#define INPUT_BTN_TL 0x136
99
#define INPUT_BTN_TL2 0x138
100
#define INPUT_BTN_TOUCH 0x14a
101
#define INPUT_BTN_TR 0x137
102
#define INPUT_BTN_TR2 0x139
103
#define INPUT_BTN_WEST 0x134
111
#define INPUT_ABS_RX 0x03
112
#define INPUT_ABS_RY 0x04
113
#define INPUT_ABS_RZ 0x05
114
#define INPUT_ABS_X 0x00
115
#define INPUT_ABS_Y 0x01
116
#define INPUT_ABS_Z 0x02
124
#define INPUT_REL_RX 0x03
125
#define INPUT_REL_RY 0x04
126
#define INPUT_REL_RZ 0x05
127
#define INPUT_REL_X 0x00
128
#define INPUT_REL_Y 0x01
129
#define INPUT_REL_Z 0x02
137
#define INPUT_MSC_SCAN 0x04
142
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_INPUT_EVENT_CODES_H_ */
include
zephyr
dt-bindings
input
input-event-codes.h
Generated on Sat Jun 17 2023 07:48:27 for Zephyr Project API by
1.9.2