[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 Di, 24.08.2010, 01:38 schrieb Helmut Karlowski:

>>> How do you get this information?
>>
>> Don't know.
>
> Maybe from acia.S ;-)

Yes, I already thought about querying if the key is still pressed... In
rare cases it could miss an key up. But it seems like a good solution...
see below.

> Why do you want to call it 100/s? For an average user 10/s or less seems
> enough to me.

1. Because rendering calculations must take place, network packets must be
cared of, etc. - If NetSurf is currently rendering a page and then calls
my gui_poll function, it's bad if I break for about 100ms ... this just
delays page rendering.

2. Obviously this is not the case when rendering is finished. In that case
I would like to use an envt_multi without timeout, but reporting every
action I'm interested in...
evnt_mult doesn't provide the key up / down. So I have to poll - if I just
poll 10 times a second the user can hit the keyboard very
fast and it looks like an key hold to me (and I miss an key up event)!
Probably it is not realisitic that the user hits the keyboard more than 10
times a second, and I shouldn't care about that.


-- 
Greets,
Ole