InputSensor - Keyboard State?

Lex Spoon lex at cc.gatech.edu
Thu Feb 1 10:54:19 UTC 2001


You seem to be talking about two issues.  You can indeed peek at the
keyboard buffer -- see #keyboardPeek.

Noticing when a key is released is harder, all aside from buffering
issues: not all platforms support this kind of notification at all.

-Lex


Ali Chamas <ali at sparkdigital.com.au> wrote:
> Hi Friends,
> 
>     Curiously, why is it so hard to implement key down/up state checking?
> When you ask for a key from the InputSensor, it flushes the buffer. Isn't it
> easy to peek on the state of a key without flushing the other input too? You
> can do it in C, and that's what's used to write the Squeak plug-ins. I
> remember some discussion a while back, and i am needing to implement this
> behavior in a Squeak app i am writing, and i can't (or can i?).
> 
> Thanks in advance,
> Squeak is awesome.
> 
> Ali.
> 
> ..____________________________________________..
> 
>     Ali Chamas.
>     Software Developer.
>     Digital AV Artist.
> 
>     Spark Digital Pty Ltd.
>     Level 12, 323 Castlereagh St
>     Sydney NSW 2000
>     Ph:  (02) 9281-3399
>     Fax: (02) 9281-1099
>     Mobile: 0401-171-479
> 
>     "What direction you should go in depends
>     very much on where you want to end up..."
>     - some wise guy.
> 
> ..____________________________________________..





More information about the Squeak-dev mailing list