Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: IIGS filter procedure for dialog box(ops) Message-ID: <35220@apple.Apple.COM> Date: 3 Oct 89 17:59:48 GMT References: <8909300318.aa14123@SMOKE.BRL.MIL> Organization: Apple Computer Inc, Cupertino, CA Lines: 30 In article <8909300318.aa14123@SMOKE.BRL.MIL> MMPR004@ECNCDC.BITNET (Scott Hutinger) writes: >[...] So, modifiers on the GS are grabbed just like the other machine. >Guess I was thinking that the modifiers were within the word, as upper >bits. Oh well, something else must live up in them there bits. Does >this mean you can grab the raw key code characters too? eg: > >#define charCodeMask 0x000000FF >#define keyCodeMask 0x0000FF00 > >I promise to keep quite till my books come. :-) But, then again I don't >know if my keyboard will put out a key without a modifier > 0x7f. Must have >something to do with the way the managers are initialized. Guess I never had >to check for errors on initialization before. > >Scott Hutinger mmpr004@ecncdc.bitnet I'm not following you...the modifiers are in the "modifiers" field of the event record; the character typed is in the "message" field. Under System Software 5.0, stuff like Option-D gets mapped into a character in the range $80-$FF (but *not* by simply flipping bit 7 on...there's an actual table), and the Option bit is still turned on in the modifiers field. -- --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.