9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Re: random moving of cursor arrow
@ 2003-08-07 14:35 David Presotto
  2003-08-08 21:14 ` Enache Adrian
  0 siblings, 1 reply; 18+ messages in thread
From: David Presotto @ 2003-08-07 14:35 UTC (permalink / raw)
  To: enache, 9fans

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

I added the serial intellimouse support to sources.  I have no way to
test it so hopefully Adi (or someone else) will be able to.  After
running aux/mouse for a serial microsoft intellimouse, just
	echo intellimouse > /dev/mousectl
and it should start acting like one.

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

From: Enache Adrian <enache@rdslink.ro>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Re: random moving of cursor arrow
Date: Sat, 26 Jul 2003 12:59:40 +0300
Message-ID: <20030726095940.GA2481@ratsnest.hole>

A question about mouse support:

Have the new changes to the serial ports & mice code added support for scroll
serial mice (aka microsoft intellimice with 5 buttons) and for shift-button3
button2 emulation ?

I'm using a rather old 4th edition plan9 (Tue Sep  3 00:36:58 2002),
and there I hacked some code in the kernel so it works fine for me now
(but no code for pnp identification in aux/mouse.c - that would be simple,
though).

It looks like this:
src/9/port/devmouse.c:
/*
 * microsoft intellimouse 3 buttons + scroll
 * 	byte 0 -	1  L  R Y7 Y6 X7 X6
 *	byte 1 -	0 X5 X4 X3 X2 X1 X0
 *	byte 2 -	0 Y5 Y4 Y3 Y2 Y1 Y0
 *	byte 3 -	0  0  M  %  %  %  %
 *
 *	%: 0xf => U , 0x1 => D
 *
 *	L: left
 *	R: right
 *	U: up
 *	D: down
 */

int
m5mouseputc(Queue*, int c)
{
	static uchar msg[3];
	static int nb;
	msg[nb++] = c & 0x7f;
	if (nb == 4) {
		schar dx,dy,newbuttons;
		dx = msg[1] | (msg[0] & 0x3) << 6;
		dy = msg[2] | (msg[0] & 0xc) << 4;
		newbuttons =
			(msg[0] & 0x10) >> (shiftpressed ? 3:2)
			| (msg[0] & 0x20) >> 5
			| ( msg[3] == 0x10 ? 0x02 :
			    msg[3] == 0x0f ? 0x08 :
			    msg[3] == 0x01 ? 0x10 : 0 );
		mousetrack(dx, dy, newbuttons, TK2MS(MACHP(0)->ticks));
		nb = 0;
	}
	return 0;
}

(I also changed 'shift' in i8042intr() to 'shiftpressed' and made it global,
 and removed 'mouseshifted' which was never set).

Thanks & Regards,
Adi

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [9fans] random moving of cursor arrow
@ 2003-07-25  8:52 sasa
  2003-07-25  9:17 ` [9fans] " sasa
  0 siblings, 1 reply; 18+ messages in thread
From: sasa @ 2003-07-25  8:52 UTC (permalink / raw)
  To: 9fans


hi!
i've got a odd problem:
when i copy large amount of data from cd-rom to hard-disk (300 mb)
and try to move the cursor arrow, then the cursor is randomly
moving around the screen.
so, i'm not able to work with mouse while copying from cd to harddrive.
procesor is amd k6 300 mhz, graphic card is s3virge, 96 mb of ram.

thanx for hints.

sasa babic (babic@icpf.cas.cz)




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

end of thread, other threads:[~2003-08-08 21:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-07 14:35 [9fans] Re: random moving of cursor arrow David Presotto
2003-08-08 21:14 ` Enache Adrian
  -- strict thread matches above, loose matches on Subject: below --
2003-07-25  8:52 [9fans] " sasa
2003-07-25  9:17 ` [9fans] " sasa
2003-07-25  9:24   ` sasa
2003-07-25  9:25     ` sasa
2003-07-25  9:27       ` boyd, rounin
2003-07-26  2:22         ` David Presotto
2003-07-26  8:37           ` C H Forsyth
2003-07-26  8:51             ` boyd, rounin
2003-07-28  8:47               ` Douglas A. Gwyn
2003-07-26 15:37             ` David Presotto
2003-07-26  9:59           ` Enache Adrian
2003-08-07 13:52             ` David Presotto
2003-07-26 19:01           ` Richard Miller
2003-07-28  5:26           ` Lucio De Re
2003-07-28  6:18             ` Lucio De Re
2003-07-29  3:11             ` David Presotto
2003-07-25 10:27       ` sasa

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).