aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-16 02:30:41 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 02:30:41 +0200
commit8dff8642c43a473713d48533974d9c7883bbc5c1 (patch)
treeea8513c76d38f2612a1202d30abf0f2e768f204c /driver
parent1c73d171b2814bf2809aa48c2d4b683a064a4f7e (diff)
downloadxorg-input-kobomultitouch-8dff8642c43a473713d48533974d9c7883bbc5c1.tar.gz
xorg-input-kobomultitouch-8dff8642c43a473713d48533974d9c7883bbc5c1.tar.bz2
xorg-input-kobomultitouch-8dff8642c43a473713d48533974d9c7883bbc5c1.zip
refactor: Replace hwdata by mtdev
This patch makes the switch, from using hwdata and the associated type A parser, to using mtdev and the associated type B parser. A command-line gesture test program is included. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'driver')
-rw-r--r--driver/multitouch.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c
index ee5242f..7233aa2 100644
--- a/driver/multitouch.c
+++ b/driver/multitouch.c
@@ -273,10 +273,12 @@ static void read_input(LocalDevicePtr local)
{
struct Gestures gs;
struct MTouch *mt = local->private;
- while (read_synchronized_event(mt, local->fd)) {
- parse_event(mt);
- extract_gestures(&gs, mt);
- handle_gestures(local, &gs, &mt->caps);
+ const struct input_event *ev;
+ while (ev = get_iobuf_event(&mt->buf, local->fd)) {
+ if (parse_event(mt, ev)) {
+ extract_gestures(&gs, mt);
+ handle_gestures(local, &gs, &mt->caps);
+ }
}
}