delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/07/01:16:42

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ALLEGRO mouse help
Date: Wed, 6 May 1998 19:20:23 +0100
Organization: None
Message-ID: <nXf+vDAnnKU1EwJD@talula.demon.co.uk>
References: <1998050603105000 DOT XAA28690 AT ladder03 DOT news DOT aol DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

MalcolmJ7 writes:
>When I use allegro's mouse function show_mouse(screen) i never get a 
>cursor on the screen.  I can use the button and x,y variables, but i 
>can't see the cursor.  What am I doing wrong?

Most likely you have forgotten to call install_timer(), which is needed
to display the cursor. From the Allegro docs:

   void show_mouse(BITMAP *bmp);
      Tells Allegro to display a mouse pointer on the screen. This will 
      only work if the timer module has been installed.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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