summaryrefslogtreecommitdiff
path: root/src/grail-impl.h
diff options
context:
space:
mode:
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;