Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!tekgen!tekigm2!phils From: phils@tekigm2.TEK.COM (Philip E Staub) Newsgroups: comp.sys.amiga Subject: Re: Mouse Pointer Help Required Keywords: Help,Mouse Pointer Message-ID: <2466@tekigm2.TEK.COM> Date: 2 Feb 88 04:56:37 GMT References: <168@gould.doc.ic.ac.uk> Reply-To: phils@tekigm2.UUCP (Philip E Staub) Organization: Tektronix, Inc., Beaverton, OR. Lines: 52 In article <168@gould.doc.ic.ac.uk> zmacv91@doc.ic.ac.uk (Peter Walkley) writes: >My friend wants a CLEAN way of getting rid of the mouse pointer, and >then being able to restore it again. He's writing a demo that grabs >the display (i.e Ignores intuition), and wants the MP out of the way. > >i.e. > > GetRidOfThePointer() ; > > ..... > hack() ; > morehack() ; > > ..... > > PutThe MousePointerBack() ; > >can anyone help ? > >P. Walkley I don't know how "clean" you would consider this, but in the include file "gfxmacros.h" there is a pair of macros OFF_SPRITE and ON_SPRITE which will achieve what you asked for, (of course, as long as you're not using sprites). So using your above example: OFF_SPRITE; ... hack(); morehack(); ... ON_SPRITE; I found this when attempting to do the same thing you describe, and I knew I wouldn't be using sprites in my hacks. I strongly suspect there is a more "official" way to do this. I can think of at least two possibilities: a) a call which moves the mouse pointer off the visible display area, and b) one which simply disables sprite 0 (I think that's the one the mouse pointer uses. It's been a long time and my memory is not too good right now). But in cases which aren't going to use sprites, this is quick and effective. Hope this helps. Phil -- ------------------------------------------------------------------------------ Phil Staub "I do NOT approve. I merely said I UNDERSTAND." tektronix!tekigm2!phils - Spock phils@tekigm2.TEK.COM