diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-07 02:17:38 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-07 02:17:38 +0100 |
commit | f86df7302a5e701108c27bfb4707565fdfdd2b0e (patch) | |
tree | 30e692c8a153831cbc0405bfa4a326259a2b35f7 | |
parent | 79e375ff801bfe6caa27524c001a6ce8b27cec6f (diff) | |
download | xorg-input-kobomultitouch-f86df7302a5e701108c27bfb4707565fdfdd2b0e.tar.gz xorg-input-kobomultitouch-f86df7302a5e701108c27bfb4707565fdfdd2b0e.tar.bz2 xorg-input-kobomultitouch-f86df7302a5e701108c27bfb4707565fdfdd2b0e.zip |
and now buttons work
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | src/multitouch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index 7102b1c..d44e038 100644 --- a/src/multitouch.c +++ b/src/multitouch.c @@ -134,6 +134,11 @@ static void handle_state(LocalDevicePtr local, xf86Msg(X_INFO, "motion: %d %d\n", dx, dy); xf86PostMotionEvent(local->dev, 0, 0, 2, dx, dy); } + for (i = 0; i < DIM_BUTTON; i++) + if (ns->button[i] != os->button[i]) + xf86PostButtonEvent(local->dev, FALSE, + i + 1, ns->button[i], + 0, 0); } //////////////////////////////////////////////////////////////////////////// |