Mail Archives: djgpp/1998/06/25/17:48:26
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 -