delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/04/27/16:08:22

Date: Mon, 27 Apr 92 21:29:01 GMT
From: kuku AT acds DOT physik DOT rwth-aachen DOT de (Christoph Kukulies)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: MouseGetEvent
Status: O

I'm still having trouble with MouseGetEvent and I don't know what the cause
for this may be. Patrick Daloze (daloze AT iro DOT umontreal DOT ca) noticed that also.
As I thought it would go away with 1.06 I didn't care much about it a few weeks
ago but now it stinging me:

I'm calling MouseGetEvent like:
   while(1){
         	   MouseGetEvent(
/*			M_POLL |   */
/*			M_NOPAINT| */
			M_MOTION|
			M_LEFT_DOWN|
			M_RIGHT_DOWN|
			M_MIDDLE_DOWN|
			M_KEYPRESS,&e);
 
        	if (e.flags &M_RIGHT_DOWN){
		/* handle right down */
		}
        	if (e.flags &M_KEYPRESS){
		/* handle keypress */
		}
        	if (e.flags &M_LEFT_DOWN){
		/* handle leftdown */
		}
		if( e.flags &M_MOTION){
		/* handle motion */ 
		}
	} /* while 1 */

When I move the mouse, everything's fine, I get motion, button etc.
But once the mouse is stopped I can get one more button. When pressing
subsequent buttons and don't move the mouse I'm not getting any events.

Is the error known? Is it in libgr or in the mouse driver? I hope it's
in libgr :)

--Chris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019