From: gautam AT interlog DOT com (Gautam N. Lad) Newsgroups: comp.os.msdos.djgpp Subject: Re: Mouse in Allegro Date: Fri, 19 Sep 97 22:16:34 GMT Organization: InterLog Internet Services Lines: 33 Message-ID: <5vutar$2te$1@news.interlog.com> References: <5vs2on$9p7$1 AT news DOT interlog DOT com> <3421A620 DOT 11BC AT cam DOT org> NNTP-Posting-Host: ip203-9.cc.interlog.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, David Jenkins wrote: >In article <3421A620 DOT 11BC AT cam DOT org>, Vic writes >Like this. > >main loop{ > do all your stuff(); > if (old_mouse_x != mouse_x || old_mouse_y != mouse_y) { > do all the stuff that happens when the mouse has moved(); > old_mouse_x = mouse_x; > old_mouse_y = mouse_y; > } >} > >It isn't that hard, is it?? Well, I had the right concept in mind, but I just wondered if Allegro already had something built in. Thanks anyways! Bye! **************************************************** * Gautam N. Lad * *--------------------------------------------------* * * * E-Mail : gautam AT interlog DOT com * * Website : http://www.interlog.com/~gautam * * * * OS/2, DOS/Windows, Graphics Gallery, Software, * * Links, Rayzor Editor/2, POV-Ray, TexturEyes, * * POV-PAK and lots lots lots more!!!!!!! * ****************************************************