Mail Archives: djgpp/1999/11/25/15:33:29
From: | "Eric Botcazou" <botcazou AT club-internet DOT fr>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro keyboard problem [2]
|
Date: | Thu, 25 Nov 1999 20:25:21 +0100
|
Organization: | Home
|
Lines: | 43
|
Message-ID: | <81k2gr$sik$1@front7.grolier.fr>
|
NNTP-Posting-Host: | ppp-214-38.kd.club-internet.fr
|
X-Trace: | front7.grolier.fr 943557979 29268 195.36.214.38 (25 Nov 1999 19:26:19 GMT)
|
NNTP-Posting-Date: | 25 Nov 1999 19:26:19 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
Here are the results of my further testings; I've used the following code,
compiled with gcc -g -o testkbd.exe testkbd.c:
#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
int main(int argc, char *argv[])
{
register unsigned int i=0;
allegro_init();
install_keyboard();
while (!keypressed())
printf("%d\r", i++);
printf("\nkey pressed.\n");
exit(EXIT_SUCCESS);
}
In a DOS box under Win 95, it's always ok.
In plain DOS, sometimes (not every time) the counter never stops.
I've tried the following combinations:
- DJGPP 2.01 + GCC 2.8.1 + Allegro 3.11
- DJGPP 2.02 + GCC 2.8.1 + Allegro 3.11
- DJGPP 2.02 + GCC 2.95.1 + Allegro 3.12
- DJGPP 2.02 + GCC 2.95.2 + Allegro 3.12
- DJGPP 2.02 + GCC 2.95.2 + Allegro 3.9.28
with Binutils 2.8.1 and Cwsdpmi 4.
I'm totally lost. Could somebody compile my code, test it in plain DOS, and
send to me the result and the executable file ?
Thanks in advance.
--
Eric Botcazou (ebotcazou AT multimania DOT com)
Page Web: www.multimania.com/ebotcazou
- Raw text -