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 [thread overview]
Message-ID: <010501c22d3c$f96f3de0$1b02a8c0@arnysm01.nj.comcast.net> (raw)
In-Reply-To: <200207150401.g6F413U15093@smtp.fywss.com>
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
next prev parent reply other threads:[~2002-07-17 2:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-15 4:01 [9fans] [reminder] pointer to Plan 9 FAQ Steve Kotsopoulos
2002-07-17 2:52 ` John DeGood [this message]
2002-07-17 12:46 [9fans] patch: serial mouse middle button emulation presotto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='010501c22d3c$f96f3de0$1b02a8c0@arnysm01.nj.comcast.net' \
--to=nu3e@arrl.net \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).