[z-machine] read_mouse

Mike Greger mgreger at cinci.rr.com
Tue May 29 23:06:01 BST 2007


Thanks for the info and the links.
That just leaves the question of input recording/playback:
Has anyone fully implemented this with respect to real-time mouse status
(position, button status, and menu status), instead of just recording the
coordinates of the last click?

Thanks,
Mike


-----Original Message-----
From: z-machine-bounces at feelies.org [mailto:z-machine-bounces at feelies.org]
On Behalf Of Jason Penney
Sent: Tuesday, May 29, 2007 5:21 PM
To: z-machine at feelies.org
Subject: Re: [z-machine] read_mouse

Mike Greger wrote:
> Could someone clarify the usage of the read_mouse opcode for me?
> The 1.1 specification says it should be real-time and that most modern
> interpreters get this wrong.
> 
> My question is why should it be real-time?

As specified it would support drag and drop, etc, although to date I
don't think this is used in any released files.  Infocom's own Dos and
Mac interpreters do support this functionality:
http://www.jczorkmid.net/V6Lib/?m=200112#9

I know Zip2000 had it right, and I just checked Windows Frotz and it
does report real time (and clicking the scroll wheel reports button 3).

My old Z-Mouse test file file is still here (Inform source and z6):
http://www.jczorkmid.net/V6Lib/zmouse.zip

Jay


-- 
Jason Penney (jpenney at jczorkmid.net)
http://JasonPenney.net/





More information about the Z-machine mailing list