www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/21/05:48:09

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> <zRKzN2AtCpI0Ew$k AT jenkinsdavid DOT demon DOT co DOT uk>
NNTP-Posting-Host: ip203-9.cc.interlog.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
   David Jenkins <me AT jenkinsdavid DOT demon DOT co DOT uk> wrote:
>In article <3421A620 DOT 11BC AT cam DOT org>, Vic <tudor AT cam DOT org> 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!!!!!!!           *
****************************************************

- Raw text -


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