Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!uvm-gen!chaffee From: chaffee@uvm-gen.UUCP (Alex D. Chaffee,231 Votey,,6581273) Newsgroups: comp.sys.mac.programmer Subject: Re: Need help w/ Event Manager Message-ID: <1229@uvm-gen.UUCP> Date: 18 Jul 89 23:11:29 GMT References: <0Yk12oy00WB6Ek10Zb@andrew.cmu.edu> Sender: nobody@uvm-gen.UUCP Organization: EMBA Computer Facility, Univ. of Vermont, Burlington. Lines: 28 From article <0Yk12oy00WB6Ek10Zb@andrew.cmu.edu>, by al1f+@andrew.cmu.edu (Andy A. Lee): > I am running a small program called EventTutor from the book "Macintosh > Programming Primer" with LightSpeed C 3.01. This program demonstrates > the Event Manager by continuously displaying event records from > the event queue. It is great, it displays mouseUp, mouseDown, updateEvt, > keyDown, autoKey, ... all except keyUp. But looking at the source code, > it should display keyUp: Inside Mac, vol. I, p.254: " There's also a global _system event mask_ that controls which events get posted into the event queue. Only event types corresponding to bits set in the system event mask are posted; all others are ignored. When the system starts up, the system event mask is set to post all except key-up event - that is, it's initialized to everyEvent - keyUpMask Note: Key-up events are meaningless for most applications...[You can] set the system event mask with... SetEventMask." > > Andy A. Lee > al1f+@andrew.cmu.edu Alex Chaffee chaffee@emily.uvm.edu ____________________________