After I study what Eliot wrote and devise my plan, I will post it back here. Bear in mind that I am new to this. I am experiencing the same difficulty in thinking 'VM' vs 'Smalltalk' as I did when thinking 'Smalltalk' vs 'Algol'; I am sure the light bulb will come on (40 Watt, sadly) eventually, but expect missteps.
BTW, is there an existing working process that the Simulator currently does that I can use as a model? I was planning on mapping what Eliot wrote to what I can see in the Simulator's command window menu as a starting point to get a feel for things. Good place to start ?
cordially,
tty
---- On Thu, 23 Jan 2014 03:32:32 -0800 Bob Arning <arning315@comcast.net> wrote ----
I don't think there is any reason to convert to an OS array - HandMorph>>processEvents already knows the OS event array that was used to generate the squeak event. Making that accessible may be all you need from the front end.
So your challenge is to take the Morphic event, queue it inside StackInterpreterSimulator (e.g. in a new inst var eventQueue), and convert it to an OS event (an Array), so that it can for example implement ioGetNextEvent: as something like
As for the conversion into the OS array, searching for "Event Typesā€¯ in sq.h will probably give a better introduction/faster understand as to the structure of said array than delving into the code doing array -> morphic event conversion in an image.