Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ll-xn!mit-eddie!uw-beaver!tektronix!decvax!dartvax!eleazar!ack From: ack@eleazar.Dartmouth.EDU (Andy J. Williams) Newsgroups: comp.sys.mac.programmer Subject: Finding MouseMoved Events Message-ID: <8769@eleazar.Dartmouth.EDU> Date: 27 Apr 88 13:55:48 GMT Reply-To: ack@eleazar.dartmouth.edu.Dartmouth.EDU (Andy J. Williams) Organization: Ack Systems Lines: 24 [] I am writing a screen saver (isn't everyone these days) which will terminate with a KeyDownMask, MouseDownMask and many of the other standard things which make screen savers go bye bye. The only one I cannot get is MouseMoved. There is no provision for this in the toolbox that I have seen, so how do I trap this event? Is it as simple as GetMouse each time through the loop with a comparison to where the Mouse was last, or is there another way? Also: This is being set up as an INIT/CDEV. Exactly how do I structure the loop which counts idle time/waits for the mouse to go into the magic corner, so that all other system events run around me. I saw the LSC Init code here but am writing this in LSPascal so it was not much help (my knowledge of C is rather small at this time). Thanks for any help! -Andy Wafna! -- Andy J. Williams '90 |Ack Systems: ack@eleazar.dartmouth.edu| _ /| Software Development +--------------------------------------+ \`o_O' ACK! Kiewit Computation Center|Hello. My $NAME is ~inigo_montoya. | ( ) / Dartmouth College |You killed my process. Prepare to vi.| U