Path: utzoo!mnetor!uunet!mcvax!uvabick!thomas From: thomas@uvabick.UUCP (Thomas Fruin) Newsgroups: comp.sys.mac.programmer Subject: Re: Finding MouseMoved Events Message-ID: <249@uvabick.UUCP> Date: 2 May 88 00:41:39 GMT References: <8769@eleazar.Dartmouth.EDU> <3068@saturn.ucsc.edu> <23826@ucbvax.BERKELEY.EDU> Organization: uvabick Lines: 18 Summary: GetNextEvent is useful too David Phillip Oster writes: > If you are running under multifinder, WaitNextEvent returns mouseMoved as > a nullEvent with a bit set (in the message field?, in the modifers > field?) if the mouse moved outside the region you hand WaitNextEvent. If you aren't running under MultiFinder, you can examine the EventRecord for null events. Even though no event is being reported, the where field will still hold the current mouse position. Compare it to an initial position you saved previously, and you've got your mouseMoved event. -- Thomas Fruin fruin@hlerul5.BITNET University of Leiden thomas@uvabick.UUCP University of Amsterdam hol0066.AppleLink 2:512/114.FidoNet The Netherlands