External Events/DSO Open Source Offering
Lex Spoon
lex at cc.gatech.edu
Fri Jul 7 12:51:48 UTC 2000
Stephan Rudlof <sr at evolgo.de> wrote:
>
> Currently I have the idea to look for the Morphic part of improving
> event handling:
> - simulating real events and
> - trying to be compatible with the existing stuff;
> by writing an EventSensor class, which
> - uses the current polling mechanism and
> - buffers simulated events to reach compatibility with polling mouse
> statii in Controller classes.
>
Compatibility is indeed a tough part of this issue; here's the breakdown I came
up with I implemented input events last summer:
http://www.egroups.com/message/squeak/4491
The only thing it would be nice to add to the scheme in that post, is a way to
allow non-Morphic code can access events either in a new VM or an old
one. I think all you'd have to do, though, is add one instance
variable to Sensor which is the last event generated, and have
InputSensor>>nextEvent generate events from polling if the relevant
primitive is not available.
-Lex
More information about the Squeak-dev
mailing list
|