From f86df7302a5e701108c27bfb4707565fdfdd2b0e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 7 Nov 2008 02:17:38 +0100 Subject: and now buttons work Signed-off-by: Henrik Rydberg --- src/multitouch.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } //////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3