Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!uunet!snorkelwacker!apple!agate!agate.berkeley.edu!rgm From: rgm@sandstorm.Berkeley.EDU (Rob Menke) Newsgroups: comp.sys.mac.programmer Subject: Re: KeyUp Events - How? Message-ID: Date: 2 Sep 90 22:07:54 GMT References: <109041@tiger.oxy.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: TEAM CS -- Making Tomorrow's Mistakes Today! Lines: 26 In-Reply-To: hammersslammers1@oxy.edu's message of 2 Sep 90 18:52:57 GMT In article <109041@tiger.oxy.edu> hammersslammers1@oxy.edu (David J. Harr) writes: ...As fas as I can tell, my loop never receives a keyUp event. If two keys are held down at the same time and then released seperately, shouldn't two separate key up events be posted? I've enabled everyEvent when I call WNE, so I am thouroughly confused. Has anyone else had any experience working with these types of events? Any light anyone can shed on this would greatly appreciated. David The problem here is not the toolbox event manager, it's the OS event manager. Since keyUp events aren't used often, the OS event manager kindly filters them out. "You should use SetEventMask only to enable key-up events in the unusual case that your application needs to respond to them." (IM v. II, p. 70) So adding the line "SetEventMask(-1);" before your event loop should make everything work correctly. -- "Gadget, love, do ya always carry a | Robert Menke glass cutter?" | rgm@OCF.berkeley.edu "No-- only when I want to cut glass." | ...!ucbvax!OCF!rgm