Reading keyboard state

Lex Spoon lex at cc.gatech.edu
Mon Dec 6 09:57:55 UTC 1999


Bert Freudenberg <bert at isgnw.CS.Uni-Magdeburg.De> wrote:
> On Fri, 3 Dec 1999, Henrik Gedenryd wrote:
> 
> > AFAIK, there is no way to get the current keyboard state for the regular
> > alphanumeric keys, like you can for modifier keys and mouse buttons.
> > 
> > Is there any way to check whether eg. the key 'i' is pressed at the moment?
> 
> Nope. Only key-press events are forwarded to Squeak, key-release events
> are eaten by the VM.
> 

If and when the low-level input system is looked at again, let's please
look at this.  By far most smalltalk programs won't care, but games are
a notable exception that might be worth thinking about.


Lex





More information about the Squeak-dev mailing list