9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] patch: serial mouse middle button emulation
@ 2002-07-17 12:46 presotto
  0 siblings, 0 replies; 2+ messages in thread
From: presotto @ 2002-07-17 12:46 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

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.

[-- Attachment #2: Type: message/rfc822, Size: 2235 bytes --]

From: John DeGood <nu3e@arrl.net>
To: 9fans@cse.psu.edu
Subject: [9fans] patch: serial mouse middle button emulation
Date: Tue, 16 Jul 2002 22:52:21 -0400
Message-ID: <010501c22d3c$f96f3de0$1b02a8c0@arnysm01.nj.comcast.net>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] patch: serial mouse middle button emulation
  2002-07-15  4:01 [9fans] [reminder] pointer to Plan 9 FAQ Steve Kotsopoulos
@ 2002-07-17  2:52 ` John DeGood
  0 siblings, 0 replies; 2+ messages in thread
From: John DeGood @ 2002-07-17  2:52 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-17 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 12:46 [9fans] patch: serial mouse middle button emulation presotto
  -- strict thread matches above, loose matches on Subject: below --
2002-07-15  4:01 [9fans] [reminder] pointer to Plan 9 FAQ Steve Kotsopoulos
2002-07-17  2:52 ` [9fans] patch: serial mouse middle button emulation John DeGood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).