From: "Lark" Newsgroups: comp.os.msdos.djgpp Subject: allegro keypressed() error Date: Thu, 11 Mar 1999 21:26:10 -0800 Organization: MindSpring Enterprises Lines: 17 Message-ID: <7c9u1h$20e$1@camel0.mindspring.com> NNTP-Posting-Host: d1.8a.2d.33 X-Server-Date: 12 Mar 1999 02:26:57 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am just learning how to use allegro, and experimenting with the mouse. when I have the two lines show_mouse(screen); while(!keypressed()); the program immediately passes this point. What is that about? Shouldn't this repeat until a key is pressed? I even tried to clear the keyboard buffer by doing this show_mouse(screen); while(keypressed()); while(!keypressed()); and this stuck me in an infinite loop. Can anyone help me w/ this? thanks.