Glulx Input Loops

version 1/101121 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - New HandleGlkEvent (in place of Section - HandleGlkEvent routine in Glulx Entry Points by Emily Short)

    Include (-

    [ HandleGlkEvent ev context abortres newcmd cmdlen ;
    (+ glk input context +) = context;
    #ifdef LOOP_DEBUG;
    print "-->Handling glk event (", (PrintEvType) (+ current glk event +) ,") from the ";
    style underline;
    print (PrintShortName) (+ current input loop +); style roman;
    print " input loop.^";
    #endif; ! LOOP_DEBUG
    return (+ value returned by glk event handling +) ;
    ];

    -) before "Glulx.i6t".