Clicking Around - KVonGit/zil-stuff GitHub Wiki
https://inform-fiction.org/zmachine/standards/z1point1/sect03.html#eight
3.8
The character set of the Z-machine is called ZSCII (Zork Standard Code for Information Interchange; pronounced to rhyme with "xyzzy"). ZSCII codes are 10-bit unsigned values between 0 and 1023. Story files may only legally use the values which are defined below. Note that some values are defined only for input and some only for output.

3.8.6
ZSCII codes 252 to 254 are defined for input only:
252: menu click 253: mouse double-click 254: mouse single-click
Menu clicks are available only in Version 6. A single click, or the first click of a double-click, is passed in as 254. The second click of a double-click is passed in as 253. In Versions 5 and later it is recommended that an interpreter should only send code 254, whether the mouse is clicked once or twice.
3.8.7
ZSCII code 255 is undefined. (This value is needed in the "terminating characters table" as a wildcard, indicating "any Input-only character with code 128 or above." However, it cannot itself be printed or read from the keyboard.)
<VERSION YZIP>
<ZIP-OPTIONS MOUSE DISPLAY>
<CONSTANT RELEASEID 0>
<CONSTANT GAME-BANNER "*** MENU TEST ***">
<INSERT-FILE "parser">
<SET REDEFINE T>
<ROUTINE GO ()
<CRLF>
<CRLF>
<SETG MODE ,VERBOSE>
<SETG HERE ,MENU-TEST-STATION>
<MOVE ,PLAYER ,HERE>
<INIT-STATUS-LINE>
<V-VERSION>
<CRLF>
<V-LOOK>
<MAIN-LOOP>>
<ROOM CLICK-TEST-STATION
(IN ROOMS)
(DESC "Click Test Station")
(LDESC "You are in a clicking location.")
(FLAGS LIGHTBIT)
>
<GLOBAL MOUSE-INFO-TBL <TABLE 0 0 0 0>>
<ROUTINE SHOW-MOUSE-INFO ()
<TELL "MOUSE INFO: " CR>
<TELL "<LOWCORE MSLOCX>: " N <LOWCORE MSLOCX> CR>
<TELL "<LOWCORE MSLOCY>: " N <LOWCORE MSLOCY> CR>
<TELL "MOUSE-INFO-TBL 0 (y): " N <GET ,MOUSE-INFO-TBL 0> CR>
<TELL "MOUSE-INFO-TBL 1 (x): " N <GET ,MOUSE-INFO-TBL 1> CR>
<TELL "MOUSE-INFO-TBL 2: " N <GET ,MOUSE-INFO-TBL 2> CR>
<TELL "MOUSE-INFO-TBL 3: " N <GET ,MOUSE-INFO-TBL 3> CR>
>
<CONSTANT TCHARS
<TABLE (KERNEL BYTE)
254 253 ;"singe/double mouse click"
>
>
TO BE CONTINUED . . .