delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/15/13:36:55

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Tom" <thomas DOT wilson AT BLAHstudent DOT adelaide DOT edu DOT auSPAM>
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
In-Reply-To: <6tjfon$bac$1@reader1.reader.news.ozemail.net>
Importance: Normal

> 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

- Raw text -


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