From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <00fb634799f783a698329ee48f284d41@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] rio /dev/mouse From: "rob pike" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-coocqbkwcwtvkwdwukjhxppsld" Date: Mon, 25 Feb 2002 13:20:10 -0500 Topicbox-Message-UUID: 55bbb96c-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-coocqbkwcwtvkwdwukjhxppsld Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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 --upas-coocqbkwcwtvkwdwukjhxppsld Content-Type: message/rfc822 Content-Disposition: inline; filename=message.txt Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Fri Feb 22 00:53:18 EST 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Fri Feb 22 00:53:17 EST 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.30.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6EE0519A63; Fri, 22 Feb 2002 00:53:09 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from ginnan.cc.titech.ac.jp (ginnan.cc.titech.ac.jp [131.112.14.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 774FF19A67 for <9fans@cse.psu.edu>; Fri, 22 Feb 2002 00:52:45 -0500 (EST) Received: (qmail 31857 invoked from network); 22 Feb 2002 05:49:38 -0000 Received: from mail-o.cc.titech.ac.jp (HELO o.cc.titech.ac.jp) (131.112.3.2) by ginnan.cc.titech.ac.jp with SMTP; 22 Feb 2002 05:49:38 -0000 Received: from p9t by mail-o.cc.titech.ac.jp (8.11.3/1.1.10.5/20Feb97-0455PM) id g1M5oJk246675; Fri, 22 Feb 2002 14:50:20 +0900 (JST) Message-Id: <200202220550.g1M5oJk246675@mail-o.cc.titech.ac.jp> To: 9fans@cse.psu.edu From: YAMANASHI Takeshi MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] rio /dev/mouse Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.8 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Help: List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 22 Feb 2002 14:35:22 0900 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 --upas-coocqbkwcwtvkwdwukjhxppsld--