plan 9 kernel history: overview | file list | diff list

1993/1201/port/devmouse.c (diff list | history)

1993/1108/sys/src/9/port/devmouse.c:516,5221993/1201/sys/src/9/port/devmouse.c:516,522 (short | long | prev | next)
1993/1006    
 *  shift & right button is the same as middle button (for 2 button mice) 
 */ 
int 
m3mouseputc(IOQ *q, int c) 
1993/1201    
m3mouseputc(int c) 
1993/1006    
{ 
	static uchar msg[3]; 
	static int nb; 
1993/1108/sys/src/9/port/devmouse.c:525,5311993/1201/sys/src/9/port/devmouse.c:525,530
1993/1006    
	short x; 
	int dx, dy, newbuttons; 
 
	USED(q); 
	/*  
	 *  check bit 6 for consistency 
	 */ 
1993/1108/sys/src/9/port/devmouse.c:557,5631993/1201/sys/src/9/port/devmouse.c:556,562
1993/1006    
 *  shift & right button is the same as middle button (for 2 button mice) 
 */ 
int 
mouseputc(IOQ *q, int c) 
1993/1201    
mouseputc(int c) 
1993/1006    
{ 
	static short msg[5]; 
	static int nb; 
1993/1108/sys/src/9/port/devmouse.c:564,5701993/1201/sys/src/9/port/devmouse.c:563,568
1993/1006    
	static uchar b[] = {0, 4, 2, 6, 1, 5, 3, 7, 0, 2, 2, 6, 1, 5, 3, 7}; 
	int dx, dy, newbuttons; 
 
	USED(q); 
	if((c&0xF0) == 0x80) 
		nb=0; 
	msg[nb] = c; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)