From dfdd69328a74988096a6c2925e42debe9b9d8eaf Mon Sep 17 00:00:00 2001 From: Olivier Samyn Date: Wed, 17 Feb 2010 21:35:11 +0100 Subject: [PATCH 1/3] aiptek: Uses event->code instead of event->value From the Linux input documentation, on a key press or release event, the actual key code is contained in the event->code field. Signed-off-by: Olivier Samyn --- src/xf86Aiptek.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c index 96873ab..4ec9c4a 100644 --- a/src/xf86Aiptek.c +++ b/src/xf86Aiptek.c @@ -866,7 +866,7 @@ xf86AiptekHIDReadInput(LocalDevicePtr local) default: { ++eventsInMessage; - common->currentValues.macroKey = event->value; + common->currentValues.macroKey = event->code; } break; } -- 1.6.3.3