Le 26/10/16 à 15:35, Denis Kudriashov a écrit :
Hi Glenn. Thank's for answer.
2016-10-26 13:29 GMT+02:00 Glenn Cavarlé <[email protected]
<mailto:[email protected]>>:
More generally, i think that, to stay consistent, Bloc should not
reuse
directly (and everywhere) some part of underlying libraries even
if sometime
these parts seems to match directly.
I can't take it. Duplication is always bad. There is no reason for it.
+1
I think we just don't need OSEvent's.
That I'm not sure. Having a nice layer is nice but I do not get why two.
Real low level is SDL events hierarchy.
And OSSDL2WindowHandle built OSEvent's from them:
OSSDL2WindowHandle>>handleNewSDLEvent: sdlEvent
^ sdlEvent accept: self
But we can delegate this processing to osWindow
osWindow handleNewSDLEvent: sdlEvent
which then will call eventsHandler of given window.
And BlOSWindowEventHandler will work directly with SDL event with full
access to raw event data. No need for intermediate level.