delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/23/10:12:10

Date: Fri, 23 Jun 2000 16:11:52 +0200 (MET DST)
From: pad2369 <pad2369 AT iperbole DOT bologna DOT it>
Message-Id: <200006231411.QAA11491@maggiore.iperbole.bologna.it>
To: djgpp AT delorie DOT com, "DeepBlack (Murray Evans)" <deepblack AT dial DOT pipex DOT com>
References: <8ivift$rtv$1 AT lure DOT pipex DOT net>
In-Reply-To: <8ivift$rtv$1@lure.pipex.net>
MIME-Version: 1.0
User-Agent: IMP/PHP3 Imap webMail Program 2.0.11
Sender: pad2369 AT iperbole DOT bologna DOT it
Subject: Re: Keyboard (?) problems, Allegro............ PLEASE HELP.
Reply-To: djgpp AT delorie DOT com

"DeepBlack (Murray Evans)" <deepblack AT dial DOT pipex DOT com>:

> My problem is that the program (which follows) does 
> not seem to
> want to read from the keyboard. In fact, after a few 
> button presses, the
> computer starts bleeping at me in an annoyed 
 >manner.... here's the code (it
> compiles fine...):
> 
> #include <stdio.h>
> 
> #include <allegro.h>
> #include <duel.h>
> 
> int main()
>  {
[...]
>   allegro_init;   /*load allegro*/
>   install_timer;  /*allegro timer*/
>   install_keyboard; /*allegro keyboard routines */

Here you are not telling the compiler to call the 
functions, you are saying "take the address of the 
function... and ignore it!".

Try this, instead:

allegro_init();  
install_timer(); 
install_keyboard();

ciao
  Giacomo

-----------------------------------------------------
Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it


- Raw text -


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