[squeak-dev] InputSensor, EventSensor miscategorised?
tim Rowledge
tim at rowledge.org
Fri Jan 29 17:35:07 UTC 2016
> On 29-01-2016, at 8:45 AM, Chris Muller <asqueaker at gmail.com> wrote:
>
> How could we possibly unload InputSensor? Isn't that what generates
> the events necessary to interact with the system? IOW, you wouldn't
> be able to reload ST80 without InputSensor, right?
It’s been some time since I dug into it and I’m all wrapped up in transforms right now so I won’t be diverting back to it soon, but I’m reasonably certain that InputSensor is actually unused except as a superclass for EventSensor. I don't recall any places where an actual InputSensor ever gets to exist, let alone get used. In MVC projects the Sensor global is an EventSensor, for example. So ‘anyButtonPressed' as I recall uses something like primMouseButtons, which actually goes via the EventSensor version and fetches events to update the variable rather than the ancient primitive.
Some clean-up work could completely get rid of InputSensor
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Trojan: Storage device for replicating codes...
More information about the Squeak-dev
mailing list
|