Mail Archives: djgpp/1998/03/11/11:16:01
hello all,perhaps someone can help me out here,I have set up my graphics screen
and called the for the mouse checking that its installed or present,what i have
done is made a function that calls the GrMouseGetEvent() with the necessary
flags and event structure,example of setup,
int main(void)
{
setup the the graphics screen ()
install mouse()
do{
GrMouseStatus(&xpos,&ypos,&ypos,&buttons,&key,&kbstatus);
other code here
while(buttons!=3); both buttons pressed together drop out i could have a
combo keypress here
back to default text screen()
return(0);
}
This works,however i know there has to be a cleaner way of doing this could
someone enlighten me thanks.What i mean here is can it be setup like allegro
that is once the mouse is installed u do not have to call a seperate function
to read the mouse, hope this decribes what i mean
Gary Lloyd
- Raw text -