[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?
Hello,
Am Mo, 23.08.2010, 22:24 schrieb Helmut Karlowski:
> Am 23.08.2010, 11:36 Uhr, schrieb m0n0 <ole@monochrom.net>:
>
>> I need to keep track of the mouse position and key up / down press.
>
> For mouse you can use a timer-event and check the mouse in between (means
> polling). It works good. I don't know what you mean by key up/down: Do you
> need to know if a key is released or what?
I don't really need it, I just wanted to know for the feature. JavaScript
has events like OnKeyDown, OnKeyUp... and also stuff like OnMouseDown,
OnMouseUp...
>> As far as I understand evnt_keybd / evnt_multi just informs me about key
>> down.
>
> How do you get this information?
Don't know.
> It does not use much CPU to poll - I have done this for mouse using
> evnt_multi-timeout and the usage is nearly 0.
Calling evnt_multi 100 times a second seems to be more CPU consuming than
calling it once in 1 second. But maybe it's not so important.
--
Greets,
Ole