🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #506

How do you get the cursor position?

#506
From: Ron Janzen
Date: Thu, 24 Apr 1986 01:14
19 lines
1471 bytes
In the March '86 Question and Answer Bulletin from Atari there was the
following question:

Are there any variables around so I can get the position of the cursor?

The answer stated that the cursor position was kept in a couple of words
at negative offsets from the line A variables base address. Specifically
it said that the cursor x position was at -14 words and the cursor y position
was at -13 words from the line A base address. Well I tried this and
those two words didn't change no matter how much I moved the mouse.
Has anybody else had any success using these two magic memory locations?
Or could somebody tell me the correct procedure to go thru to get the
current mouse position (without using VDI). I know I could intercept the
mouse packets from the keyboard but I would rather not do that if I don't
have to.
-- 
Ron Janzen
Ontario Science Centre, Toronto
...!{allegra,ihnp4,decvax,pyramid}!utzoo!oscvax!ron
Technical Details
Message-ID: <403@oscvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcs!oscvax!ron

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site oscvax.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcs!oscvax!ron
From: ron@oscvax.UUCP (Ron Janzen)
Newsgroups: net.micro.atari16
Subject: How do you get the cursor position?
Message-ID: <403@oscvax.UUCP>
Date: Wed, 23-Apr-86 20:14:48 EST
Article-I.D.: oscvax.403
Posted: Wed Apr 23 20:14:48 1986
Date-Received: Thu, 24-Apr-86 01:32:04 EST
Reply-To: ron@oscvax.UUCP (Ron Janzen)
Organization: Ontario Science Centre, Toronto
Lines: 19