delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/17/02:50:25

From: "Eric.Nicolas" <Eric DOT Nicolas AT iota-eso DOT u-psud DOT fr>
Date: Tue, 17 Jan 95 08:26:54 CST
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Questions... about libgrx

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 -


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