From 9a5a6a348d6f2629bb17eeaf19aad4fb895ae5df Mon Sep 17 00:00:00 2001 From: Olivier Samyn Date: Sun, 21 Feb 2010 00:22:28 +0100 Subject: [PATCH] aiptek: Change index offset for generated key events. Since the first 8 elements in the xorg key map are NoSymbol, and the first linux kernel element index is 0, the first keysym is at offset 8 and not 7. Signed-off-by: Olivier Samyn --- src/xf86Aiptek.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c index e70d58f..bb5aa21 100644 --- a/src/xf86Aiptek.c +++ b/src/xf86Aiptek.c @@ -461,11 +461,11 @@ xf86AiptekSendEvents(LocalDevicePtr local, int r_z) */ /* Keyboard 'make' (press) event */ - xf86PostKeyEvent(local->dev, i+7, TRUE, + xf86PostKeyEvent(local->dev, i+8, TRUE, bAbsolute, 0, 5, x, y, common->currentValues.button, xTilt, yTilt); /* Keyboard 'break' (depress) event */ - xf86PostKeyEvent(local->dev, i+7, FALSE, + xf86PostKeyEvent(local->dev, i+8, FALSE, bAbsolute, 0, 5, x, y, common->currentValues.button, xTilt, yTilt); break; -- 1.6.3.3