delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/23/23:39:07

Message-Id: <199903240439.XAA11606@delorie.com>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: LAB <lab1 AT stratos DOT net>
Date: Wed, 24 Mar 1999 04:36:50 +0000
MIME-Version: 1.0
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

- Raw text -


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