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

1997/1112/port/devmouse.c (diff list | history)

1997/1101/sys/src/9/port/devmouse.c:418,4281997/1112/sys/src/9/port/devmouse.c:418,429 (short | long | prev | next)
1993/1006    
	short x; 
	int dx, dy, newbuttons; 
 
	/*  
	 *  check bit 6 for consistency 
	 */ 
	if(nb==0){ 
		if((c&0x40) == 0){ 
1997/1112    
		/* 
		 * an extra byte comes for middle button motion. 
		 * only two possible values for the extra byte. 
		 */ 
		if(c == 0x00 || c == 0x20){ 
1993/1006    
			/* an extra byte gets sent for the middle button */ 
			middle = (c&0x20) ? 2 : 0; 
			newbuttons = (mouse.buttons & ~2) | middle; 


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