While adding support to true MT in the driver, generic PAD support
was broken. The generic way of reporting PAD events in the kernel
is a big pain in the xxx. It has caused more trouble than it's
worth. The community wanted it this way. But, they do not need to
support it and they do not use the devices either.

Enough ranting. Let's get the job done. One more patch to follow.

Signed-off-by: Ping Cheng <pi...@wacom.com>
---
 src/wcmUSB.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index 4b5f53b..5e5e4e2 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1651,6 +1651,12 @@ static void usbDispatchEvents(InputInfoPtr pInfo)
                else if (event->type == EV_KEY)
                {
                        usbParseKeyEvent(common, event, channel);
+
+                       /* for generic device, usbParseBTNEvent is only valid 
for
+                        * PAD device. Make sure events are sent on the right 
channel.
+                        */
+                       if (common->wcmProtocolLevel == WCM_PROTOCOL_GENERIC)
+                               private->wcmBTNChannel = PAD_CHANNEL;
                        usbParseBTNEvent(common, event, private->wcmBTNChannel);
                }
        } /* next event */
-- 
1.7.10.4


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to