[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?
- To: ole@monochrom.net, mint <mint@lists.fishpool.fi>
- Subject: Re: [MiNT] AES related question: How to keep track if my application is receiving input?
- From: Paul Wratt <paul.wratt@gmail.com>
- Date: Tue, 31 Aug 2010 04:10:09 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=WaeDiV+kKB+FFFVAo5/7rjMY1xjj5N47VOOowVZBLAU=; b=tLLVptyphomD6L4gwjTBAqM1mU+dIO/iF+AW4Fw8VMkQP9qgBlUonD1QvPfVbote8k /xUuIQ4azNSQrvIF6drLJN0d3PYf4OkAnbydCgkpfMztbkZVQktf+XPYSRaE6oTyOlj/ okcyJ80qGtEXo/5fz3D9j9FzOczwbc5cq4VC0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hP6DfOeVumAekq2KRnoewKO7/fLUcYjET8trWI0q9HNPw5mjW71rByQxV8nHUxafcD xxBSWaT3rEUelBRErrsuW7rHhe95Lin+aWhJu0QIiwku3SsnvbwuVVnY3k0oEyq/Qg/a armbNTDNQSzq87FAApXm3i9scb7neaL1Dmmck=
- In-reply-to: <5e1884ed40ca99bb1881157ad80d2fa0-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYBVkF3Alw6XF1XQkQKW1leSQ==-webmailer2@server01.webmailer.hosteurope.de>
- List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
- List-id: <mint.lists.fishpool.fi>
- List-owner: <mailto:tjhukkan@fishpool.fi>
- List-post: <mailto:mint@lists.fishpool.fi>
- List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
- List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
- References: <611C3B470A9C41BBB2E509D0240FE5EA@mercatus.local> <0002c138.01c73262939e@smtp.freeola.net> <092ed0763bd1932924f163c30cdd45b1-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYMXUF0AVU6XF1XQ0IBWVldSQ==-webmailer2@server04.webmailer.hosteurope.de> <FAF2BA1B4F1443DF85A9009FFFD8ED14@mercatus.local> <AANLkTi=xLXBm5ubtdBjCpHh1gYShFqjmB5OYojTb9z_-@mail.gmail.com> <5e1884ed40ca99bb1881157ad80d2fa0-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYBVkF3Alw6XF1XQkQKW1leSQ==-webmailer2@server01.webmailer.hosteurope.de>
- Sender: mint-bounce@lists.fishpool.fi
On Tue, Aug 31, 2010 at 2:06 AM, m0n0 <ole@monochrom.net> wrote:
>
> Am Montag, den 30.08.2010, 17:13 +0200 schrieb Paul Wratt
> <paul.wratt@gmail.com>:
>
>> This would be a good time to come up with a clean alternative, one
>> that allows for all JS mouse (button) & key actions
>>
>> onBeforeKeyDown
>> onKeyDown
>> onAfterKeyDown
>>
>> onBeforeKeyUp
>> onKeyUp
>> onAfterKeyUp
>
> How is onBeforeKeyDown & onBeforeKeyUp defined? I mean...
> onBeforeKeyDown is always, except the situation where onKeyDown &
> onKeyUp fires, isn't it?
>
> Greets,
> m
>
I cant say how it would work at an os level (yet) but the app knows
when KeyClick has happened, so it just has to fire the Before even
first, then the event, then the After even. it currently just needs to
be told about KeyDown, KeyUp events also
BTW both a KeyDown KeyUp even must be fired in order to get a valid
KeyClick in DOM & JS. onKeyDown is now often used in form input
verifiers that use ajax.
also for example
<input type=text onBeforeKeyDown="this.disabled=true;"
onAfterKeyUp="this.disabled=false">
At an OS level, I would say the keyboard would have to be absracted
(thru IKBD vector?), hence a keyboard driver, that could do the same
as described above
The only real question on that last point is:
how would the events be supplied to the upper levels (program, aes,
etc) if they know the facility is available
As it happens this could also be simply extended to provide other key
& button (read: generic input) related functions (at the os level), if
it was a driver, maybe combining deadkeys + wmoose would make sense.
Or offering access to other input devices (Joystick, tablet,etc) -
someone has already asked for RFC for Joystick API
Paul