[comp.sys.atari.st] Using the mouse in TOS

adp@csug.cs.reading.ac.uk (Andrew Pollard) (01/30/91)

(Sorry if this is a repost - Trouble locally with rn/pnews)

Hello,
 I would like to use the mouse in a TOS program, ie to be able to get the
x and y coordinate of the mouse and the state of the two buttons. I have seen
the 'xbios #0 initmous' call that sets up (among other things) an address of a
routine to handle the mouse input. What I would like to know is how to
program this routine, ie how to read the mouse packets. (Also how to reset the
mouse to its previous state on program exit). Any help would be appreciated.

 Also, please could someone recommend a good book on the 'internal workings' of
the ST, such as the low-level stuff like the above, keyboard reading, detailed
description of linea, etc. I have the book "Concise Atari ST 68000 Programmers
Reference Guide" which contains many things, but not always very accurately or
to great detail.

Thanks,
 Andrew
--------------------------------------------------------------------------------
| Andrew Pollard           |    JANET adp@uk.ac.rdg.cs.csug                    |
| Dept of Computer Science |   BITNET adp%csug.cs.rdg.ac.uk@UKACRL             |
| Reading, RG6 2AX         | INTERNET adp%csug.cs.rdg.uk.ac@nsfnet-relay.ac.uk |
| England.                 |                                                   |
--------------------------------------------------------------------------------