Mail Archives: djgpp/1995/01/17/02:50:25
Hello, Thanks you for your answers,
>> 2. I use the libgrx library both with TurboC and GCC, and I have a problem
>> with the Mouse and Keyboard Event mechanism. I enabled both Mouse AND
>> Keyboard events handling with interrupts. With TurboC, everything goes
>> well, but with GCC, keyboards entries simply stays in the BIOS's keyboard
>> buffer ! Does anyone have an explanation ?
>
> Did you write your own handler? If you did, try to add some realmode callback.
>
No, I didn't, I used the standard functions of the libgrx. Here is my code :
if (!MouseDetect())
ErrorMsg("Impossible to detect the mouse.",
"Please verify connection and/or driver.");
MouseEventMode(1);
MouseEventEnable(TRUE,TRUE);
MouseInit();
MouseSetCursor(CurMouse[0]);
MouseDisplayCursor();
So, you see that in MouseEventEnable, I turn both Mouse AND Keyboard events
handling ON, and this work fine in TurboC, but not with gcc !!??
- Raw text -