[squeak-dev] The Trunk: Kernel-eem.1378.mcz

tim Rowledge tim at rowledge.org
Fri Mar 5 18:44:45 UTC 2021



> On 2021-03-04, at 11:50 PM, Marcel Taeumel <marcel.taeumel at hpi.de> wrote:
> 
> Note that, at some point, we might want to move both EventSensor and event classes (e.g. MouseEvent) into a common package. Because leaving it like this would make Kernel depending on Morphic. :-)

A very, very, long time ago Andreas & I had Words about this matter. When I first wrote the event sensor stuff I left it as very Morphic related, which seemed reasonable at the time for a prototype. Andreas correctly, albeit rudely, pointed out that the basic mechanism should not tie to Morphic or indeed any other specific UI layer. I think we eventually worked that part out ok.

One might argue that EventSensor and a few other classes should be moved into a category other than Kernel-Processes on grounds of not being really wanted for some postulated totally headless image.

Thinking about this reminds me that it might be a good idea to merge in the keyboard state tracking that I made for NuScratch. Internalised into EventSensor might simplify it; and perhaps it is a good model for replacing the messy #peekButtons etc.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
The subjunctive would have walked into a bar, had it only known.



More information about the Squeak-dev mailing list