[squeak-dev] Oddities with #keyDown and Sensor
Lawson English
lenglish5 at cox.net
Sun Sep 25 17:57:44 UTC 2011
Here's a simple bit of code + stored events that shows what I am getting
on the Mac. I get the same i/o behavior (at the bottom of the page) with
the latest Cog and CogMT VMs as well as the 4.2 all-in-one distribution
from squeak.org. (Mac, Intel, Mac OS X 6.8):
http://paste.lisp.org/display/124831
#(1 11688796 358 202 0 0 0 1)
#(2 11688821 2 2 0 0 0 1)
#(2 11689589 2 1 0 0 0 1)
#(2 11689589 100 0 0 100 0 1)
#(2 11690028 2 2 0 0 0 1)
#(2 11690381 2 1 0 0 0 1)
#(2 11690381 100 0 0 100 0 1)
#(2 11690604 2 2 0 0 0 1)
...
Note that with chording, the last key pressed will be the only key
reported, so there's no reliable way to even fake chorded info.
From reading various threads about event tracking on Squeak, I know
that there are platform-specific issues that have never been resolved.
However, the current behavior on the Mac (at least my Mac, Intel, Mac OS
X 6.8) doesn't do even the minimal event handling that is complained
about in the various threads, so I can't even try the workarounds that
are suggested for games-style keyboard input.
Lawson
More information about the Squeak-dev
mailing list
|