From 1a45bfa0c4f46c575d77537ee90c81487af04d14 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 8 Nov 2008 22:25:13 +0100 Subject: ... and button brought back Signed-off-by: Henrik Rydberg --- src/multitouch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multitouch.c b/src/multitouch.c index 0ef808e..cf06f97 100644 --- a/src/multitouch.c +++ b/src/multitouch.c @@ -47,7 +47,7 @@ static int pointer_property(DeviceIntPtr dev, static int device_init(DeviceIntPtr dev, LocalDevicePtr local) { struct MTouch *mt = local->private; - unsigned char btmap[DIM_BUTTON]={0,1,2}; + unsigned char btmap[DIM_BUTTON + 1]={0,1,2,3}; local->fd = xf86OpenSerial(local->options); if (local->fd < 0) { @@ -148,7 +148,7 @@ static void handle_state(LocalDevicePtr local, for (i = 0; i < DIM_BUTTON; i++) { if (GETBIT(ns->button, i) != GETBIT(os->button, i)) { xf86PostButtonEvent(local->dev, FALSE, - i, GETBIT(ns->button, i), + i + 1, GETBIT(ns->button, i), 0, 0); //xf86Msg(X_INFO, "button: %d -> %d\n", //i, GETBIT(ns->button, i)); -- cgit v1.2.3