Reply-To: From: "Arthur" To: "DJGPP Mailing List" , "Tom" Subject: RE: Keyboard input in Allegro Date: Mon, 14 Sep 1998 19:57:32 +0100 Message-ID: <000001bde011$876745c0$f54b08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <6tjfon$bac$1@reader1.reader.news.ozemail.net> Importance: Normal Precedence: bulk > Hi! > > I've decided that i want to try writing a game Allegro. It's going to be a > vertical scrolling shoot em up (pretty original hey? *cough*). > Anyways, im > having trouble getting the keyboard to control the ship good.. > > Whenever I hold a key down, my ship will move a bit, then stop, then move > again. I'm pretty sure it has something to do with the keyboard > delay before > repeating, How can i get around this? > Odds on you're using readkey(). Don't. Use something like: if(key[KEY_LEFT]) move_left(); etc. Read the key[] part of the manual. James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819