[comp.sys.atari.st] Mouse cursor control ?

brecht@sask.UUCP (01/09/87)

	Can anyone tell me a way of positioning the mouse cursor 
	at a desired screen location.

	What I would like to do is - at different times position the
	mouse cursor at a specified location on the screen.

	For example

	if condition then
		cursor_position(x,y);
	end

	Note that I do not want to write my own mouse controlling routines.

	Any help would be appreciated.
	Thanks.

tim

	brecht@sask.UUCP
	ihnp4!sask!brecht
	utcsri!sask!brecht
	ubc-vision!alberta!sask!brecht

Tim Brecht
Department of Computational Science
University of Saskatchewan
Saskatoon, Saskatchewan, CANADA

jpexg@mit-hermes.AI.MIT.EDU (John Purbrick) (01/22/87)

In article <575@sask.UUCP>, brecht@sask.UUCP (Tim Brecht) writes:
> 
> 	Can anyone tell me a way of positioning the mouse cursor 
> 	at a desired screen location.
> 
> 	What I would like to do is - at different times position the
> 	mouse cursor at a specified location on the screen.
> Tim Brecht

Sure. Why this information isn't in all the data books is the real question.
The reason may be that these addresses aren't "safe", ie later releases of TOS
may not work with them, but it works on my 1040 now. These aren't supervisor-
only locations.

mouse X 0x26E0		All three words can be read or written. If you
mouse Y 0x26E2		write them, the mouse cursor will jump to the 
mouse buttons 0x26E6	desired position.

							John Purbrick
							jpexg@hermes.ai.mit.edu