From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] patch: serial mouse middle button emulation MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-bcrkgymwvshijyspafrlxpxwjy" Date: Wed, 17 Jul 2002 08:46:22 -0400 Topicbox-Message-UUID: cf26a7d0-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-bcrkgymwvshijyspafrlxpxwjy Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit done, sources updated. I'm not sure why we took it out; seems to have disappeared in oct 1999. Maybe we got tired of 2 button mice because it's impossible to do acme chording with them even with the shift key. --upas-bcrkgymwvshijyspafrlxpxwjy Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Jul 16 22:53:41 EDT 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Jul 16 22:53:40 EDT 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.16.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 46F2A19B23; Tue, 16 Jul 2002 22:53:12 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 4D8F019B1B for <9fans@cse.psu.edu>; Tue, 16 Jul 2002 22:52:39 -0400 (EDT) Received: from cg938416a (pcp085155pcs.arnysm01.nj.comcast.net [68.46.96.100]) by mtaout06.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with SMTP id <0GZD00DF4HAMQ5@mtaout06.icomcast.net> for 9fans@cse.psu.edu; Tue, 16 Jul 2002 22:51:58 -0400 (EDT) From: John DeGood To: 9fans@cse.psu.edu Message-id: <010501c22d3c$f96f3de0$1b02a8c0@arnysm01.nj.comcast.net> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Mailer: Microsoft Outlook Express 5.50.4807.1700 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <200207150401.g6F413U15093@smtp.fywss.com> Subject: [9fans] patch: serial mouse middle button emulation Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 16 Jul 2002 22:52:21 -0400 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 --upas-bcrkgymwvshijyspafrlxpxwjy--