git: 9front

Download patch

ref: 7a1c2d6efa7277c83d4738ace143db5a224e8f10
parent: a5c627631a8a7c70b58050d33ae81ee57e81fc87
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Aug 13 06:41:02 EDT 2012

nusb/kb: increase mouse packet buffer from 32 to 64 bytes for Microsoft Sidewinder X5 Mouse (thanks Rexford Gibbs for reporting and testing)

--- a/sys/src/cmd/nusb/kb/kb.c
+++ b/sys/src/cmd/nusb/kb/kb.c
@@ -227,7 +227,7 @@
 	static char maptab[] = {0x0, 0x1, 0x4, 0x5, 0x2, 0x3, 0x6, 0x7};
 	int x, y, b, c, ptrfd;
 	int	mfd, nerrs;
-	char	buf[32];
+	char	buf[64];
 	char	mbuf[80];
 	KDev*	f = a;
 	int	hipri;
--