cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/11/11:16:01

From: Gary AT bbs DOT st DOT net DOT au (Gary)
Newsgroups: comp.os.msdos.djgpp
Subject: Grx:polling the mouse
Date: 12 Mar 98 00:17:57
Organization: Soft-Tech +61-7-3869-2666
Lines: 22
Message-ID: <95a_9803120031@softtech.st.net.au>
References: <7536CF540CA AT vision DOT felk DOT cvut DOT cz>
NNTP-Posting-Host: 203.37.129.8
Cache-Post-Path: sun.brisnet.org.au!unknown AT bbs DOT st DOT net DOT au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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