From: "Todd Rowan" Newsgroups: comp.os.msdos.djgpp Subject: Re: Tiny Allegro(Mouse) Problem Date: Fri, 31 Jul 1998 16:48:12 -0700 Organization: ICGNetcom Lines: 19 Message-ID: <6ptl3u$b3h@news9.noc.netcom.net> References: <19980731 DOT 173534 DOT 3958 DOT 1 DOT matthew DOT krause AT juno DOT com> NNTP-Posting-Host: firewall143.luminous.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk According to the Allegro documentation, the readkey() function will wait until you press a key. If you want to create objects on the screen that react to mouse clicks and keypresses, use the Allegro GUI routines and create your own GUI objects. That way you can attach a keypress to a specific object and/or bit of code. Another possible option is to use the Allegro function keypressed(). If that returns true, then you may be able to use readkey(), or clear_keybuf(). OTOH, if you don't want to use keypresses to intiate actions, why are you using readkey() in the first place? matthew DOT krause AT juno DOT com wrote in message <19980731 DOT 173534 DOT 3958 DOT 1 DOT matthew DOT krause AT juno DOT com>... >I am attempting to make a graphical menu for the beginning of my program. >I have several bitmaps, each being blitted to the screen in a different >spot. When the user clicks on the bitmap, I want the program to execute >some functions, depending on which bitmap he/she had clicked on.