Ascii Equivalents for KeyUp/KeyDown events
Marcel Weiher
marcel at metaobject.com
Fri Dec 1 08:43:00 UTC 2000
Peter asked me to forward this:
> From: Peter Crowther <Peter.Crowther at melandra.com>
> Date: 2000-11-30 20:19:38 +0100
>
> > From: Marcel Weiher [mailto:marcel at metaobject.com]
> > It seems to me that if you're going to do stuff like use 'left
shift
> > key' codes, you're going to be device-dependent anyhow
>
> I'm with Marcel on this one. How do you cope with binding eg. the
Windows
> keys, the Apple keys, the Amiga keys? And what do you do when
someone's
> using a chord keypad, or the 'keyboard' on a PDA? I think the key
bindings
> have to be device-dependent to allow extensions for each platform;
ideally,
> though, you'd have pairs of <raw, Unicode-translated or nil> codes
coming up
> from the VM as events, as the VM knows which platform it's running
on so it
> can do the legwork where possible. Games programmers who don't
care which
> key it is as long as the user presses it can use the raw code; business
> types the translated code.
>
> - Peter
More information about the Squeak-dev
mailing list
|