Recently, Scott Raney wrote:

>> I'm wondering if I'm missing something with regard to the ability to test
>> the state of keypresses in MC.  On Mac systems, a keyUp message is sent when
>> a key is pressed down.
> 
> Correct.  This is required because of a design flaw in MacOS: it
> doesn't guarantee that the same process that got the key down event
> will get the key up event.  And in fact this bug showed up with some
> regularity until we hard-coded the keyUp message to the keyDown event,
> ugly as it may be.
> 
>> On Windows, if a key is held down for what I'm
>> guessing is the repeatDelay, a keyUp message is sent.
> 
> True, followed immediately by another keyDown.  You will get an equal
> number of them, though.
> 
>> It seems to be
>> impossible to truly test for states of keys on these systems.
>> 
>> Am I missing something here?
> 
> Methinks you've overlooked the "keysDown" function, which returns
> exactly this information.

OK, I guess that will work.  Thank you.  I wonder if the function should
have been named "keysREALLYDown"...

This is a v2.4 feature only (not present in 2.3)?

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: [EMAIL PROTECTED]
                                  Web: www.tactilemedia.com


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to