patches/linuxwacom-01-no-usb.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2185 42f2be129be9
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- linuxwacom-0.8.4-2.orig/src/xdrv/xf86Wacom.c	2009-09-16 15:54:04.000000000 -0400
+++ linuxwacom-0.8.4-2/src/xdrv/xf86Wacom.c	2009-09-20 15:24:01.299896648 -0400
@@ -984,7 +984,11 @@
 	/* while there are whole packets present, check the packet length
 	 * for serial ISDv4 packet since it's different for pen and touch
 	 */
+#ifdef WCM_ENABLE_LINUXINPUT
 	if (common->wcmForceDevice == DEVICE_ISDV4 && common->wcmDevCls != &gWacomUSBDevice) 
+#else
+	if (common->wcmForceDevice == DEVICE_ISDV4)
+#endif
 	{
 		common->wcmPktLength = 9;
 		data = common->buffer;
@@ -1008,7 +1012,9 @@
 		}
 		pos += cnt;
 
+#ifdef WCM_ENABLE_LINUXINPUT
 		if (common->wcmDevCls != &gWacomUSBDevice) 
+#endif
 		{
 			data = common->buffer + pos;
 			if ( data[0] & 0x18 )