diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:25:13 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:25:13 +0100 |
commit | 1a45bfa0c4f46c575d77537ee90c81487af04d14 (patch) | |
tree | 4c57ce99b17b60ef3e8c365d555cec142a6c0ef3 | |
parent | c1131a0c9c628976d35bf6669e4d7aff7ac78988 (diff) | |
download | xorg-input-kobomultitouch-1a45bfa0c4f46c575d77537ee90c81487af04d14.tar.gz xorg-input-kobomultitouch-1a45bfa0c4f46c575d77537ee90c81487af04d14.tar.bz2 xorg-input-kobomultitouch-1a45bfa0c4f46c575d77537ee90c81487af04d14.zip |
... and button brought back
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | src/multitouch.c | 4 |
1 files 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)); |