From 12b0a79f9e5bc483b5c16f702ae5b8836425827e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 5 Nov 2008 00:02:22 +0100 Subject: Break out capabilities Signed-off-by: Henrik Rydberg --- src/common.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/common.h (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..7aabd7e --- /dev/null +++ b/src/common.h @@ -0,0 +1,34 @@ +#ifndef COMMON_H +#define COMMON_H + +#include "xorg-server.h" +#include +#include +#include +//#include + +//////////////////////////////////////////////////////// +//#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 + +typedef int bool; + +#define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) + +//////////////////////////////////////////////////////// + +#endif -- cgit v1.2.3