summaryrefslogtreecommitdiff
path: root/src/grail-impl.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-01-02 11:00:52 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-01-02 12:39:07 +0100
commitc0666a895e7fe8e488332263fd106ced0ed7cab7 (patch)
treefca88fbee4aaed6e1eed050a749ce6246a7f1966 /src/grail-impl.h
parent1e07054fbeab6e90f104c279d3246097dd838a17 (diff)
Replace touch logic with utouch frame engine
The original grail uses an internal touch framework and exports some touch information as extended attributes to gesture events. This was never quite the intention, but rather to expose gestures and touches on a similar footing, such that grail can be input agnostic. This patch starts off by replacing the internal touch framework with the utouch-frame engine. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-impl.h')
-rw-r--r--src/grail-impl.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/grail-impl.h b/src/grail-impl.h
index 2859186..dcbaedd 100644
--- a/src/grail-impl.h
+++ b/src/grail-impl.h
@@ -23,15 +23,26 @@
23#ifndef _GRAIL_IMPL_H 23#ifndef _GRAIL_IMPL_H
24#define _GRAIL_IMPL_H 24#define _GRAIL_IMPL_H
25 25
26#include <grail-touch.h> 26#define MTDEV_NO_LEGACY_API
27#define GRAIL_NO_LEGACY_API
28
29#include <grail.h>
30#include <utouch/frame-mtdev.h>
27#include "evbuf.h" 31#include "evbuf.h"
28#include "grailbuf.h" 32#include "grailbuf.h"
29 33
34#define DIM_TOUCH 32
35#define DIM_TOUCH_BYTES ((DIM_TOUCH + 7) >> 3)
36
30struct grail_impl { 37struct grail_impl {
31 struct touch_dev dev; 38 struct evemu_device *evemu;
32 struct touch_caps emu; 39 struct mtdev *mtdev;
40 utouch_frame_handle fh;
41 const struct utouch_frame *frame;
33 struct evbuf evbuf; 42 struct evbuf evbuf;
34 struct grailbuf gbuf; 43 struct grailbuf gbuf;
44 float emin_x, emin_y;
45 float emax_x, emax_y;
35 int filter_abs; 46 int filter_abs;
36 int pointer_status; 47 int pointer_status;
37 int pointer_x, pointer_y; 48 int pointer_x, pointer_y;