Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!execu!sequoia!rpp386!inebriae!al From: al@inebriae.UUCP (Al Evans) Newsgroups: comp.sys.mac.programmer Subject: Re: Need help w/ Event Manager Summary: Getting keyup events Message-ID: <398@inebriae.UUCP> Date: 18 Jul 89 12:39:52 GMT References: <0Yk12oy00WB6Ek10Zb@andrew.cmu.edu> Reply-To: al@inebriae.UUCP (Al Evans) Followup-To: comp.sys.mac.programmer Organization: PowerTools Lines: 16 In article <0Yk12oy00WB6Ek10Zb@andrew.cmu.edu> al1f+@andrew.cmu.edu (Andy A. Lee) writes: > >I am running a small program called EventTutor ...[which]... 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. [source code deleted] Your problem is that the keyUp event is masked out by default; the system event mask is intialized at startup to "everyEvent - keyUpMask" (See IM I-254). I'm not a C person, but in Pascal you would change this by calling SetEventMask(everyEvent) (IM II-70). --Al Evans-- -- Al Evans {tndev,texbell,ssbn}!inebriae!al al@inebriae.WLK.COM