Mail Archives: djgpp/1999/03/23/23:39:07
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 -