From: Chris Bagwell <ch...@cnpbagwell.com> Init tool device type is needed for all MT devices to do correct filtering; not just pen+MT tablets.
Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com> --- Limit init of tool to MT case sinces that function is not ready for pad devices and geared towards generic protocol only. src/wcmUSB.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wcmUSB.c b/src/wcmUSB.c index d8bd404..bc2d16a 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -1412,11 +1412,12 @@ static void usbDispatchEvents(InputInfoPtr pInfo) DBG(6, common, "%d events received\n", private->wcmEventCnt); - if (private->wcmPenTouch) - { + if (private->wcmUseMT) private->wcmDeviceType = usbInitToolType(private->wcmEvents, - private->wcmEventCnt); + private->wcmEventCnt); + if (private->wcmPenTouch) + { /* We get both pen and touch data from the kernel when they * both are in/down. So, if we were (hence the need of dslast) * processing pen events, we should ignore touch events. -- 1.7.3.4 ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel