blob: 9e8c487703e68a61b40ef667d84d41599df19f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#ifndef _LINUX_INPUT_H_
#define _LINUX_INPUT_H_
/*
* These defines are taken from input.h in the linux kernel source tree.
* Copyright (c) 1999-2002 Vojtech Pavlik
*/
/*
* The event structure.
*/
struct input_event {
unsigned long tv_sec;
unsigned long tv_usec;
unsigned short type;
unsigned short code;
int value;
};
struct input_id {
unsigned short bustype;
unsigned short vendor;
unsigned short product;
unsigned short version;
};
#define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */
#define EV_SYN 0x00
#define EV_KEY 0x01
#define EV_REL 0x02
#define EV_ABS 0x03
#define EV_MSC 0x04
#define SYN_REPORT 0
#define BTN_LEFT 0x110
#define BTN_RIGHT 0x111
#define BTN_FORWARD 0x115
#define BTN_BACK 0x116
#define BTN_0 0x100
#define BTN_1 0x101
#define BTN_2 0x102
#define BTN_3 0x103
#define BTN_4 0x104
#define BTN_5 0x105
#define BTN_6 0x106
#define BTN_7 0x107
#define BTN_TOOL_FINGER 0x145
#define BTN_TOOL_DOUBLETAP 0x14d
#define BTN_TOOL_TRIPLETAP 0x14e
#define ABS_X 0x00
#define ABS_Y 0x01
#define ABS_PRESSURE 0x18
#define ABS_TOOL_WIDTH 0x1c
#define MSC_GESTURE 0x02
#define BUS_I8042 0x11
#define PSMOUSE_SYNAPTICS 7
#endif /* _LINUX_INPUT_H_ */
|