[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?



On Wed, Aug 25, 2010 at 11:00 PM, Jo Even Skarstein <joska@online.no> wrote:
> --------------------------------------------------
> From: "m0n0" <ole@monochrom.net>
> Sent: Wednesday, August 25, 2010 1:39 PM
> To: "Peter Slegg" <p.slegg@scubadivers.co.uk>
> Cc: <mint@lists.fishpool.fi>
> Subject: Re: [MiNT] AES related question: How to keep track if my
> application is receiving input?
>
>> More important: tracking of mouse position will be important to change
>> mouse cursor, when hovering over an link, or when hovering over an frame
>> border, etc.
>
> 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!
>
> Jo Even
>
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

onBeforeKeyPress
onKeyPress
onAfterKeyPress

ditto for mouse (left & right & middle buttons & MW)

Would this qualify as a keyboard driver (or event driver). An app can
do the OnAfter & OnBefore, but it might also be useful if the app does
not handle these (not talking about JS)

Is it possible to modify the mousew.xdi to do these, in such a way
that it can be used without XaAES (with a driver loader maybe)

Paul