On Thu, Dec 6, 2012 at 4:21 PM, Ping Cheng pingli...@gmail.com wrote:
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;
Wouldn't usbChooseChannel be a better home for this addition?
Jason
---
When you're rife with devastation / There's a simple explanation:
You're a toymaker's creation / Trapped inside a crystal ball.
And whichever way he tilts it / Know that we must be resilient
We won't let them break our spirits / As we sing our silly song.
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
--
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