From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200203080024.g280OV0332970@mail-o.cc.titech.ac.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] rio /dev/mouse From: YAMANASHI Takeshi MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 8 Mar 2002 09:08:32 +0900 Topicbox-Message-UUID: 616367e2-eaca-11e9-9e20-41e7f4b1d025 > : And of course, I have changed rio/rio.c so that rio is now > : interpreting rolling wheel as either Kup or Kdown pressed. > > Can you send the code? Sure. I only added the following lines headed with `>' to rio.c. I don't know this works in general, however. in mousethread() in rio.c: for(;;) switch(alt(alts)){ case MReshape: resized(); break; case MMouse: > if (mouse->buttons == 8) { > static Rune up[2] = {Kup, L'\0'}; > > if (input != nil) > sendp(input->ck, up); > continue; > } > else if (mouse->buttons == 16) { > Rune down[2] = {Kdown, L'\0'}; > > if (input != nil) > sendp(input->ck, down); > continue; > } Again: -- YAMANASHI akeshi