blob: 0ddfaafbfb338e0a4bd8db3bdda7a93547dc519b (
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
|
#ifndef COMMON_H
#define COMMON_H
#include "xorg-server.h"
#include <xf86.h>
#include <xf86_OSproc.h>
#include <xf86Xinput.h>
#include <linux/input.h>
#include <errno.h>
#include <match/match.h>
//#include <exevents.h>
////////////////////////////////////////////////////////
//#define BTN_MT_REPORT_PACKET 0x210 /* report multitouch packet data */
//#define BTN_MT_REPORT_FINGER 0x211 /* report multitouch finger data */
#define BTN_TOOL_PRESS 0x148 /* The trackpad is a physical button */
#define BTN_MT_REPORT_PACKET 0x14b /* multitouch device */
#define BTN_MT_REPORT_FINGER 0x14c /* multitouch device */
#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */
#define ABS_MT_TOUCH 0x30
#define ABS_MT_TOUCH_MAJOR 0x30
#define ABS_MT_TOUCH_MINOR 0x31
#define ABS_MT_WIDTH 0x32
#define ABS_MT_WIDTH_MAJOR 0x32
#define ABS_MT_WIDTH_MINOR 0x33
#define ABS_MT_ORIENTATION 0x34
#define ABS_MT_POSITION_X 0x35
#define ABS_MT_POSITION_Y 0x36
#define SYSCALL(call) while (((call) == -1) && (errno == EINTR))
#define GETBIT(m, x) ((m>>(x))&1U)
#define SETBIT(m, x) (m|=(1U<<(x)))
#define CLEARBIT(m, x) (m&=~(1U<<(x)))
////////////////////////////////////////////////////////
#endif
|