##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-27/22:57-0400 ##+ # # Event.icn, demonstrate event returns # link enqueue, evmux procedure main() window := open("Event", "g", "size=20,20", "canvas=hidden") # insert an event into the queue, left press, control and shift Enqueue(window, &lpress, 11, 14, "cs", 2) e := Event(window) write(image(e)) # a side effect of the Event function is keywords settings write("&x:", &x) write("&y:", &y) write("&row:", &row) write("&col:", &col) write("&interval:", &interval) write("&control:", &control) write("&shift:", &shift) write("&meta:", &meta) close(window) end