🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10536

Re: Quick 'n Dirty Mouse Info

#10536
From: Chuck McManis
Date: Fri, 09 Dec 1988 23:36
24 lines
1633 bytes
In article <IXanoby00Uo5E0ZFdK@andrew.cmu.edu> (Andrew Jordan Werth) writes:
> Does anybody know of a really easy way to get the absolute X and Y 
> positions of the mouse, in C, relative to the Workbench screen, at all 
> times?  I need the values even while my window is inactive.
>Thanks,
>Andrew Werth

I always kind of wonder about questions like this. Please let us know what
you need this information for, if it's a screen hack or something 
then the answer is "Just read it out of the Workbench screen structure." 
Robotroff is a good example of this.

Sure it will break under future releases but you don't care right? I can't
think of a really supported way to do this (there is no MousePos(*x,*y)
call that lets Intuition let you know what it thinks) The other option 
is to look at the sprite 0 registers and see where it is. 

If you have a "legitimate" reason to need this information I would be
interested in hearing about it. 


--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID: <80900@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!tmsoft!dptcdc!dpmizar!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!xanth!ames!oliveb!sun!pepper!cmcmanis
References: <IXanoby00Uo5E0ZFdK@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!tmsoft!dptcdc!dpmizar!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!xanth!ames!oliveb!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Quick 'n Dirty Mouse Info
Message-ID: <80900@sun.uucp>
Date: 9 Dec 88 23:36:03 GMT
References: <IXanoby00Uo5E0ZFdK@andrew.cmu.edu>
Sender: news@sun.uucp
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 24