Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!ames!claris!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: suspend/resume/mouse-moved events Message-ID: <13184@apple.Apple.COM> Date: 2 Jul 88 02:38:19 GMT References: <2950@cvl.umd.edu> Reply-To: darin@apple.apple.com.UUCP (Darin Adler) Organization: Apple Lines: 14 In article <2950@cvl.umd.edu> avjewe@cvl.umd.edu (Andrew Donaldson Jewell) writes: > What exactly does (Get/Wait)NextEvent return for suspend, resume, > and MouseMoved events? What pieces of the event record > return what things? The events are app4Events, which means that the "what" field of the event record contains the integer 15 for suspend, resume, and mouse-moved events. The high byte of the "message" field of the event record is $01 for a suspend or resume event, and $FA for a mouse-moved event. The low bit of the "message" field is 0 for a suspend event and 1 for a resume event. Darin Adler AppleLink: Adler4 UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin CSNET: darin@Apple.com