www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/26/00:10:15

Message-ID: <37C49C77.A6C@ns.sympatico.ca>
From: Klaas <klaas AT ns DOT sympatico DOT ca>
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro keys
References: <37be8bb8 AT news DOT mdh DOT se>
Lines: 23
Date: Thu, 26 Aug 1999 01:46:24 GMT
NNTP-Posting-Host: 142.177.71.20
X-Complaints-To: abuse AT ns DOT sympatico DOT ca
X-Trace: sapphire.mtt.net 935631984 142.177.71.20 (Wed, 25 Aug 1999 22:46:24 ADT)
NNTP-Posting-Date: Wed, 25 Aug 1999 22:46:24 ADT
Organization: Sympatico-Subscriber
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Erik "Tower" Ytterberg wrote:
> 
> We are having some trouble reading input from the keyboard. If you press
> more than one key the program ignores it. We have looked at the examples
> that comes with Allegro, and we canīt find anything that differs from our
> code. Whatīs the secret??
> 
> We are checking the keyboard several times during our main itterative  loop,
> using the key[ THE_KEY] command.
> For example:
> 
> if(key[KEY_CONTROL])
>     a=true;
> if(key[KEY_SPACE])
>     b=true;

Does it work in the examples?  Because it could just be your keyboard...

If it does, just post more of the snippet (the one you did has no
errors).  It is possible that there is a subtle error somewhere else
(you are calling install_keyboard right?)

-Mike

- Raw text -


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