www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/25/17:48:26

Date: Thu, 25 Jun 1998 16:44:58 -0500 (ECT)
From: "Ronald Patino G." <logan AT cue DOT satnet DOT net>
Message-Id: <199806252144.QAA05494@cue.satnet.net>
To: djgpp AT delorie DOT com

Hi , can somebody tell me if I am using the Allegro keyboard routine properly, this is the code i wrote 
if somebody can point out my mystake i would apreciate it. 

  After running this , when i return to RHIDE the keyboard doesn't work at all, any key i press either the cursor  
goes left or right or pops up any of the dialog boxes of RHIDE   

#include <stdlib.h> 
#include <stdio.h> 
#include "allegro.h" 

int main() 
{ 
 allegro_init(); 
 install_keyboard(); 
 set_gfx_mode(GFX_AUTODETECT,640,400,0,0); 
 set_pallete(desktop_pallete); 
 textout_centre(screen, font, "HOLA!", SCREEN_W/2, SCREEN_H/2, 255); 
 readkey(); 
 remove_keyboard(); 
 allegro_exit(); 
 return(0); 
 } 

thanks for your help 
Ronald.

- Raw text -


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