From mboxrd@z Thu Jan 1 00:00:00 1970 From: John DeGood To: 9fans@cse.psu.edu Message-id: <010501c22d3c$f96f3de0$1b02a8c0@arnysm01.nj.comcast.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT References: <200207150401.g6F413U15093@smtp.fywss.com> Subject: [9fans] patch: serial mouse middle button emulation Date: Tue, 16 Jul 2002 22:52:21 -0400 Topicbox-Message-UUID: ce80a5c4-eaca-11e9-9e20-41e7f4b1d025 Code is present in /sys/src/9/port/devmouse.c to support middle button emulation for serial mice, but the "mouseshifted" variable is never set. Adding 3 lines to /sys/src/9/pc/kbd.c (marked with "+" below) fixes the problem: /sys/src/9/pc/kbd.c ---- static Lock i8042lock; static uchar ccc; static void (*auxputc)(int, int); + extern int mouseshifted; ---- case Shift: shift = 0; + mouseshifted = 0; break; ---- case Shift: shift = 1; + mouseshifted = 1; return; ---- John