[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] AES related question: How to keep track if my application is receiving input?



Am Mittwoch, den 25.08.2010, 15:00 +0200 schrieb "Jo Even Skarstein"
<joska@online.no>:

> The mouse position can be tracked using rectangle events. As for the
> key up event - I agree with others that this is difficult to detect
> cleanly under TOS. You might have to hook into the keyboard vector to
> do this - not a nice thing to do under a multitasking OS!

How should it work? heres the rectangle parameter flags:

flag  specifies the event to wait for as follows:
MO_ENTER Wait for mouse to enter rectangle
MO_LEAVE Wait for mouse to leave rectangle  

So I just could track if the mouse enters or leaves a specific region. 
this would be my solution:

while ( do_poll )
{
  evnt_multi(...);
  graf_mkstate(...);
}

greets,
m