9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rio /dev/mouse
Date: Mon, 25 Feb 2002 13:20:10 -0500	[thread overview]
Message-ID: <00fb634799f783a698329ee48f284d41@plan9.bell-labs.com> (raw)

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

Long ago, various pieces of the system cleared out the top bits but it
looks to me like all that code is gone.  A little debugging should
tell you where the problem is.  Put a print into
/sys/src/cmd/rio/rio.c, in the routine mousethread(), right after case
MMouse.  Print out the state of mouse.buttons.  If the button is
cleared there, it's the library (/sys/src/libdraw/mouse.c); if it's
still set here, then rio is doing it somewhere.  I don't have an
intellimouse handy but this should be easy for you to track down.

-rob


[-- Attachment #2: message.txt --]
[-- Type: message/rfc822, Size: 2084 bytes --]

From: YAMANASHI Takeshi <uncover@beat.cc.titech.ac.jp>
To: 9fans@cse.psu.edu
Subject: [9fans] rio /dev/mouse
Date: Fri, 22 Feb 2002 14:35:22 0900
Message-ID: <200202220550.g1M5oJk246675@mail-o.cc.titech.ac.jp>

I'm using Microsoft Intelli wheel mouse now.

Without rio, I rolled up and down the wheel while doing
`cat /dev/mouse', and its button state of the output was
`8' or `16'.

But under rio, `cat /dev/mouse' produced with the button
state `0' only.

Could you tell me what is happening and why?

I want to change rio to interpret this 8 or 16 button state
as either arrow-up or arrow-down keyboard event.
-- 
Sincerely,
YAMANASHI Takeshi

             reply	other threads:[~2002-02-25 18:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 18:20 rob pike [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-08  0:08 YAMANASHI Takeshi
2002-03-07  8:57 Fco.J.Ballesteros
2002-03-07  1:21 Russ Cox
2002-03-07 11:58 ` Boyd Roberts
2002-03-07  1:15 YAMANASHI Takeshi
2002-03-07  0:48 YAMANASHI Takeshi
2002-02-22  5:35 YAMANASHI Takeshi
2002-02-25 11:48 ` Boyd Roberts

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=00fb634799f783a698329ee48f284d41@plan9.bell-labs.com \
    --to=rob@plan9.bell-labs.com \
    --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).