Mail Archives: djgpp/1992/04/27/16:08:22
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 -