Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Summary of "How does one detect whether a modifier key is being held down?" Keywords: Modifier key Message-ID: <11120@goofy.Apple.COM> Date: 5 Nov 90 22:53:41 GMT References: <5494@quiche.cs.mcgill.ca> Organization: Apple Computer, Inc. Lines: 16 monching@quiche.cs.mcgill.ca (Patrick WONG) writes: >If you use a GetNextEvent call and check the modifier >flag, the event record modifier field will indicate the modifier keys' >states, regardless of whether GetNextEvent returns TRUE or not. This is not >documented, but I've never gotten it to fail. One can also use the equivalent OS Event Manager call (GetOSEvent), which does less work than GetNextEvent. (Also, unlike GetNextEvent it doesn't move memory, which means it can be used at interrupt level.) -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 3-PK Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr