From 9efbc24a04dddebe33fe7bfa919c596ebc9bab4e Mon Sep 17 00:00:00 2001 From: Olivier Samyn Date: Wed, 24 Feb 2010 00:24:02 +0100 Subject: [PATCH 2/2] aiptek: Add keyboard feedback struct initialization. Without a call to InitKbdFeedbackClassDeviceStruct, no keyboard events are seen by xev. This adds the call and required callback functions. Signed-off-by: Olivier Samyn --- src/xf86Aiptek.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c index c53ccde..f0a816d 100644 --- a/src/xf86Aiptek.c +++ b/src/xf86Aiptek.c @@ -1569,6 +1569,23 @@ xf86AiptekOpenDevice(DeviceIntPtr pDriver) } /* + * xf86AiptekBellCallback + */ +static void +xf86AiptekBellCallback(int pct, DeviceIntPtr di, pointer ctrl, int x) +{ +} + +/* + * xf86AiptekKbdCtrlCallback + */ +static void +xf86AiptekKbdCtrlCallback(DeviceIntPtr di, KeybdCtrl* ctrl) +{ +} + + +/* * xf86AiptekProc * * Call dispatcher for this driver. @@ -1648,6 +1665,15 @@ xf86AiptekProc(DeviceIntPtr pAiptek, int requestCode) ErrorF("Unable to init Key Class Device\n"); return !Success; } + + if(InitKbdFeedbackClassDeviceStruct(pAiptek, + xf86AiptekBellCallback, + xf86AiptekKbdCtrlCallback) == FALSE) + { + ErrorF("Unable to init Keyboard Feedback Class Device\n"); + return !Success; + } + #endif /* we don't label the axes here, done later in -- 1.6.3.3