include: add a bunch of flags for GetTouchEvent processing

TOUCH_CLIENT_ID is set if the touch was generated from a client ID instead
of a DDX/driver touch ID. i.e. submitted by the dix.

TOUCH_END is a special flag that's required to force the touch to end.
Since the protocol with grab replaying and pointer emulation is rather
complex, it's quite hard to know otherwise when a touch sequence should
really die.

The others do what it says on the imaginary box.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
Peter Hutterer 2011-12-14 15:00:33 +10:00
parent 956a97487b
commit 92a5862d0c
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,15 @@ SOFTWARE.
#define POINTER_NORAW (1 << 5) /* Don't generate RawEvents */
#define POINTER_EMULATED (1 << 6) /* Event was emulated from another event */
/* GetTouchEvent flags */
#define TOUCH_ACCEPT (1 << 0)
#define TOUCH_REJECT (1 << 1)
#define TOUCH_PENDING_END (1 << 2)
#define TOUCH_CLIENT_ID (1 << 3) /* touch ID is the client-visible id */
#define TOUCH_REPLAYING (1 << 4) /* event is being replayed */
#define TOUCH_POINTER_EMULATED (1 << 5) /* touch event may be pointer emulated */
#define TOUCH_END (1 << 6) /* really end this touch now */
/*int constants for pointer acceleration schemes*/
#define PtrAccelNoOp 0
#define PtrAccelPredictable 1