Waldemar Schultz escribió:
Mariano Alvarez Fernandez schrieb:
Hi.
I think it's not much interest in GRX nowadays. Anyway here is a pre-release for 2.4.5, mostly win32 related:
small(?) problem:
GrKeyPressed() seems not to work any longer under MINGW, always returns zero. Under DJGPP it seems to be O.K.
Wops! I found the bug (thanks), but it only happen if GrKeyPressed() is the first input function used (is that the case?) This patch solves the problem: --- w32keys.old Mon Feb 4 22:34:54 2002 +++ w32keys.c Thu Feb 14 18:19:06 2002 @@ -24,6 +24,10 @@ int GrKeyPressed(void) { + if (MOUINFO->msstatus < 2) { + GrMouseInit(); + GrMouseEventEnable(1, 0); + } return _GrKeyPressed(); } @@ -61,7 +65,7 @@ int kbhit(void) { - return _GrKeyPressed(); + return GrKeyPressed(); } int getkey(void)