Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!hbiso!theep!wildcat!steve From: steve@wildcat.UUCP (Steve Holland) Newsgroups: comp.sys.amiga.programmer Subject: Re: How to do a "MovePointer()"? Message-ID: Date: 22 Jun 91 03:29:40 GMT References: <19997@csli.Stanford.EDU> Reply-To: wildcat!steve@alphalpha.com Lines: 24 >In article <19997@csli.Stanford.EDU> bratt@csli.Stanford.EDU (Harry Bratt) writes: >I need to change the position of Intuition's mouse pointer. I >don't need lots of low-level control (like recording mouse movements >and playing them back), I just need a single re-positioning once >in a while. >Currently I'm doing: > >IntuitionBase->MouseX = x; >IntuitionBase->MouseY = y; >SetPointer(...); If you do it that way, remember to LockIBase() first. The correct way to do this is to send the input.device a pointer-positioning message. > >This appears to work.... but... >Is it legal to be writing to those IntuitionBase variables? And >is there a better way to be doing this? > > -Harry > bratt@csli.stanford.edu -- ----------->Steve Holland<----------- Internet: wildcat!steve@alphalpha.com| "I never let my schooling get in the USENET: ...!alphalpha!wildcat!steve | way of my education" -Mark Twain