Zephyr Project API  3.4.0
A Scalable Open Source RTOS
Input Event Definitions

Input event types.

#define INPUT_EV_KEY   0x01
 
#define INPUT_EV_REL   0x02
 
#define INPUT_EV_ABS   0x03
 
#define INPUT_EV_MSC   0x04
 
#define INPUT_EV_VENDOR_START   0xf0
 
#define INPUT_EV_VENDOR_STOP   0xff
 

Input event KEY codes.

#define INPUT_KEY_0   11
 
#define INPUT_KEY_1   2
 
#define INPUT_KEY_2   3
 
#define INPUT_KEY_3   4
 
#define INPUT_KEY_4   5
 
#define INPUT_KEY_5   6
 
#define INPUT_KEY_6   7
 
#define INPUT_KEY_7   8
 
#define INPUT_KEY_8   9
 
#define INPUT_KEY_9   10
 
#define INPUT_KEY_A   30
 
#define INPUT_KEY_B   48
 
#define INPUT_KEY_C   46
 
#define INPUT_KEY_D   32
 
#define INPUT_KEY_E   18
 
#define INPUT_KEY_F   33
 
#define INPUT_KEY_G   34
 
#define INPUT_KEY_H   35
 
#define INPUT_KEY_I   23
 
#define INPUT_KEY_J   36
 
#define INPUT_KEY_K   37
 
#define INPUT_KEY_L   38
 
#define INPUT_KEY_M   50
 
#define INPUT_KEY_N   49
 
#define INPUT_KEY_O   24
 
#define INPUT_KEY_P   25
 
#define INPUT_KEY_Q   16
 
#define INPUT_KEY_R   19
 
#define INPUT_KEY_S   31
 
#define INPUT_KEY_T   20
 
#define INPUT_KEY_U   22
 
#define INPUT_KEY_V   47
 
#define INPUT_KEY_VOLUMEDOWN   114
 
#define INPUT_KEY_VOLUMEUP   115
 
#define INPUT_KEY_W   17
 
#define INPUT_KEY_X   45
 
#define INPUT_KEY_Y   21
 
#define INPUT_KEY_Z   44
 

Input event BTN codes.

#define INPUT_BTN_DPAD_DOWN   0x221
 
#define INPUT_BTN_DPAD_LEFT   0x222
 
#define INPUT_BTN_DPAD_RIGHT   0x223
 
#define INPUT_BTN_DPAD_UP   0x220
 
#define INPUT_BTN_EAST   0x131
 
#define INPUT_BTN_LEFT   0x110
 
#define INPUT_BTN_MIDDLE   0x112
 
#define INPUT_BTN_MODE   0x13c
 
#define INPUT_BTN_NORTH   0x133
 
#define INPUT_BTN_RIGHT   0x111
 
#define INPUT_BTN_SELECT   0x13a
 
#define INPUT_BTN_SOUTH   0x130
 
#define INPUT_BTN_START   0x13b
 
#define INPUT_BTN_THUMBL   0x13d
 
#define INPUT_BTN_THUMBR   0x13e
 
#define INPUT_BTN_TL   0x136
 
#define INPUT_BTN_TL2   0x138
 
#define INPUT_BTN_TOUCH   0x14a
 
#define INPUT_BTN_TR   0x137
 
#define INPUT_BTN_TR2   0x139
 
#define INPUT_BTN_WEST   0x134
 

Input event ABS codes.

#define INPUT_ABS_RX   0x03
 
#define INPUT_ABS_RY   0x04
 
#define INPUT_ABS_RZ   0x05
 
#define INPUT_ABS_X   0x00
 
#define INPUT_ABS_Y   0x01
 
#define INPUT_ABS_Z   0x02
 

Input event REL codes.

#define INPUT_REL_RX   0x03
 
#define INPUT_REL_RY   0x04
 
#define INPUT_REL_RZ   0x05
 
#define INPUT_REL_X   0x00
 
#define INPUT_REL_Y   0x01
 
#define INPUT_REL_Z   0x02
 

Input event MSC codes.

#define INPUT_MSC_SCAN   0x04
 

Detailed Description

Macro Definition Documentation

◆ INPUT_ABS_RX

#define INPUT_ABS_RX   0x03

◆ INPUT_ABS_RY

#define INPUT_ABS_RY   0x04

◆ INPUT_ABS_RZ

#define INPUT_ABS_RZ   0x05

◆ INPUT_ABS_X

#define INPUT_ABS_X   0x00

◆ INPUT_ABS_Y

#define INPUT_ABS_Y   0x01

◆ INPUT_ABS_Z

#define INPUT_ABS_Z   0x02

◆ INPUT_BTN_DPAD_DOWN

#define INPUT_BTN_DPAD_DOWN   0x221

◆ INPUT_BTN_DPAD_LEFT

#define INPUT_BTN_DPAD_LEFT   0x222

◆ INPUT_BTN_DPAD_RIGHT

#define INPUT_BTN_DPAD_RIGHT   0x223

◆ INPUT_BTN_DPAD_UP

#define INPUT_BTN_DPAD_UP   0x220

◆ INPUT_BTN_EAST

#define INPUT_BTN_EAST   0x131

◆ INPUT_BTN_LEFT

#define INPUT_BTN_LEFT   0x110

◆ INPUT_BTN_MIDDLE

#define INPUT_BTN_MIDDLE   0x112

◆ INPUT_BTN_MODE

#define INPUT_BTN_MODE   0x13c

◆ INPUT_BTN_NORTH

#define INPUT_BTN_NORTH   0x133

◆ INPUT_BTN_RIGHT

#define INPUT_BTN_RIGHT   0x111

◆ INPUT_BTN_SELECT

#define INPUT_BTN_SELECT   0x13a

◆ INPUT_BTN_SOUTH

#define INPUT_BTN_SOUTH   0x130

◆ INPUT_BTN_START

#define INPUT_BTN_START   0x13b

◆ INPUT_BTN_THUMBL

#define INPUT_BTN_THUMBL   0x13d

◆ INPUT_BTN_THUMBR

#define INPUT_BTN_THUMBR   0x13e

◆ INPUT_BTN_TL

#define INPUT_BTN_TL   0x136

◆ INPUT_BTN_TL2

#define INPUT_BTN_TL2   0x138

◆ INPUT_BTN_TOUCH

#define INPUT_BTN_TOUCH   0x14a

◆ INPUT_BTN_TR

#define INPUT_BTN_TR   0x137

◆ INPUT_BTN_TR2

#define INPUT_BTN_TR2   0x139

◆ INPUT_BTN_WEST

#define INPUT_BTN_WEST   0x134

◆ INPUT_EV_ABS

#define INPUT_EV_ABS   0x03

◆ INPUT_EV_KEY

#define INPUT_EV_KEY   0x01

◆ INPUT_EV_MSC

#define INPUT_EV_MSC   0x04

◆ INPUT_EV_REL

#define INPUT_EV_REL   0x02

◆ INPUT_EV_VENDOR_START

#define INPUT_EV_VENDOR_START   0xf0

◆ INPUT_EV_VENDOR_STOP

#define INPUT_EV_VENDOR_STOP   0xff

◆ INPUT_KEY_0

#define INPUT_KEY_0   11

◆ INPUT_KEY_1

#define INPUT_KEY_1   2

◆ INPUT_KEY_2

#define INPUT_KEY_2   3

◆ INPUT_KEY_3

#define INPUT_KEY_3   4

◆ INPUT_KEY_4

#define INPUT_KEY_4   5

◆ INPUT_KEY_5

#define INPUT_KEY_5   6

◆ INPUT_KEY_6

#define INPUT_KEY_6   7

◆ INPUT_KEY_7

#define INPUT_KEY_7   8

◆ INPUT_KEY_8

#define INPUT_KEY_8   9

◆ INPUT_KEY_9

#define INPUT_KEY_9   10

◆ INPUT_KEY_A

#define INPUT_KEY_A   30

◆ INPUT_KEY_B

#define INPUT_KEY_B   48

◆ INPUT_KEY_C

#define INPUT_KEY_C   46

◆ INPUT_KEY_D

#define INPUT_KEY_D   32

◆ INPUT_KEY_E

#define INPUT_KEY_E   18

◆ INPUT_KEY_F

#define INPUT_KEY_F   33

◆ INPUT_KEY_G

#define INPUT_KEY_G   34

◆ INPUT_KEY_H

#define INPUT_KEY_H   35

◆ INPUT_KEY_I

#define INPUT_KEY_I   23

◆ INPUT_KEY_J

#define INPUT_KEY_J   36

◆ INPUT_KEY_K

#define INPUT_KEY_K   37

◆ INPUT_KEY_L

#define INPUT_KEY_L   38

◆ INPUT_KEY_M

#define INPUT_KEY_M   50

◆ INPUT_KEY_N

#define INPUT_KEY_N   49

◆ INPUT_KEY_O

#define INPUT_KEY_O   24

◆ INPUT_KEY_P

#define INPUT_KEY_P   25

◆ INPUT_KEY_Q

#define INPUT_KEY_Q   16

◆ INPUT_KEY_R

#define INPUT_KEY_R   19

◆ INPUT_KEY_S

#define INPUT_KEY_S   31

◆ INPUT_KEY_T

#define INPUT_KEY_T   20

◆ INPUT_KEY_U

#define INPUT_KEY_U   22

◆ INPUT_KEY_V

#define INPUT_KEY_V   47

◆ INPUT_KEY_VOLUMEDOWN

#define INPUT_KEY_VOLUMEDOWN   114

◆ INPUT_KEY_VOLUMEUP

#define INPUT_KEY_VOLUMEUP   115

◆ INPUT_KEY_W

#define INPUT_KEY_W   17

◆ INPUT_KEY_X

#define INPUT_KEY_X   45

◆ INPUT_KEY_Y

#define INPUT_KEY_Y   21

◆ INPUT_KEY_Z

#define INPUT_KEY_Z   44

◆ INPUT_MSC_SCAN

#define INPUT_MSC_SCAN   0x04

◆ INPUT_REL_RX

#define INPUT_REL_RX   0x03

◆ INPUT_REL_RY

#define INPUT_REL_RY   0x04

◆ INPUT_REL_RZ

#define INPUT_REL_RZ   0x05

◆ INPUT_REL_X

#define INPUT_REL_X   0x00

◆ INPUT_REL_Y

#define INPUT_REL_Y   0x01

◆ INPUT_REL_Z

#define INPUT_REL_Z   0x02