home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!nuntius
- From: Andrew G. Shebanow <shebanow@taligent.com>
- Subject: Re: Q: Checking for modif keys on app startup
- Message-ID: <Bs619u.Fr6@taligent.com>
- Sender: usenet@taligent.com (More Bytes Than You Can Read)
- Organization: Taligent, Inc.
- X-Useragent: Nuntius v1.1
- References: <1992Jul28.162138.9681@leland.Stanford.EDU>
- <1992Jul29.144320.18410@bmers95.bnr.ca>
- Date: Wed, 29 Jul 1992 19:39:30 GMT
- Lines: 13
-
- I would recommend using EventAvail (or GetOSEvent, as Keith suggests):
-
- EventAvail(everyEvent,&myEvent);
-
- if all you are checking for is the modifier keys. Testing the modifiers
- field of the Event record is much easier than bit-twiddling with GetKeys.
-
- GetKeys is your only recourse if you are doing something that requires a
- lot of keyboard smarts, like a keyboard controlled game.
-
- Have fun,
-
- Andy
-