From d0a5c68b2582fc6bdcee1d949913f78c0651b1a6 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 25 May 2013 01:06:16 +0200 Subject: Transform touch events just like all other events Transform touch coordinates in the same way as other events coming from the wacom driver otherwise setting for exmaple the Wacom Rotation property has no effect Signed-off-by: Sjoerd Simons Acked-by: Jason Gerecke --- src/wcmTouchFilter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wcmTouchFilter.c b/src/wcmTouchFilter.c index 07603af..b1b1685 100644 --- a/src/wcmTouchFilter.c +++ b/src/wcmTouchFilter.c @@ -112,6 +112,8 @@ wcmSendTouchEvent(WacomDevicePtr priv, WacomChannelPtr channel) WacomDeviceState oldstate = channel->valid.states[1]; int type = -1; + wcmRotateAndScaleCoordinates (priv->pInfo, &state.x, &state.y); + valuator_mask_set(mask, 0, state.x); valuator_mask_set(mask, 1, state.y); -- cgit v1.2.1