Message-Id: <199903240439.XAA11606@delorie.com> Comments: Authenticated sender is From: "George Foot" To: LAB Date: Wed, 24 Mar 1999 04:36:50 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Allegro Keyboard CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) Reply-To: djgpp AT delorie DOT com On 21 Mar 99 at 10:40, LAB wrote: > I am using the RCONTROL key as a fire button under Allegro and I would > like to disable the repeat capability on this key only (I want the > player to have to release this key and press it again to fire).All the > other keys I want to repeat (arrow keys for player movement). You can't read that key with `readkey', so the auto-repeat is irrelevant. What you're reading, I assume, is the `key' array which just shows the current state of the key. You probably want to watch out for the time when the key wasn't pressed in the last game cycle but is pressed in the next one, and fire only at that time. -- George