<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Georgia">I don't think there is any reason to convert to
      an OS array - HandMorph&gt;&gt;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.<br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 1/23/14 4:43 AM, Henrik Johansen
      wrote:<br>
    </div>
    <blockquote
      cite="mid:F04A5531-9AAB-46F2-BE03-164F3C2C6759@veloxit.no"
      type="cite">
      <pre wrap=""> </pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <br>
      <div>
        <div>On 22 Jan 2014, at 7:05 , Eliot Miranda &lt;<a
            moz-do-not-send="true" href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div style="font-family: Helvetica; font-size: 12px;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;">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</div>
          <div style="font-family: Helvetica; font-size: 12px;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>
          </div>
          <div style="font-family: Helvetica; font-size: 12px;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;">
            <div>StackInterpreterSimulator&gt;&gt;ioGetNextEvent: evtBuf</div>
            <div><br>
            </div>
            <div><span class="" style="white-space: pre;"> eventQueue
                isEmpty ifTrue:</span></div>
          </div>
          <div style="font-family: Helvetica; font-size: 12px;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span
              class="" style="white-space: pre;">
              <div style="white-space: normal;"><span
                  style="white-space: pre;"> </span><span
                  style="white-space: pre;"> [^</span>self
                primitiveFail].</div>
              <div style="white-space: normal;"><br>
              </div>
            </span></div>
          <div style="font-family: Helvetica; font-size: 12px;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span
              style="white-space: pre;"> self convertMorphicEvent:
              eventQueue removeFirst into: evtBuf</span></div>
        </blockquote>
      </div>
      <br>
      <div>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 -&gt; morphic event conversion in an image.</div>
      <div>Make sure you get WindowEvent type 6 correct! :)</div>
      <div><br>
      </div>
      <div>Cheers,</div>
      <div>Henry</div>
    </blockquote>
    <br>
  </body>
</html>