home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!oinone.kit.uni-kl.de!sold
- From: sold@kit.uni-kl.de (Christoph Sold)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How do I read many keys down?
- Message-ID: <sold.51.713824020@kit.uni-kl.de>
- Date: 14 Aug 92 20:27:00 GMT
- References: <2482@nic.cerf.net>
- Sender: news@rhrk.uni-kl.de
- Organization: Universitaet Kaiserslautern
- Lines: 40
-
- In article <2482@nic.cerf.net> cutrell@nic.cerf.net (Doug Cutrell) writes:
- >Subject: How do I read many keys down?
- >From: cutrell@nic.cerf.net (Doug Cutrell)
- >Date: 10 Aug 92 18:16:08 GMT
- >I am writing a game and I want to implement an interface
- >that allows for the user pressing several keys at once.
- >That is, the user holds down lots of keys at once and
- >I need to be able to tell which ones are down. I know
- >about GetKeys, but the FAQ list for this group states that
- >at most two non-modifier keys will be reported at any
- >given time.
- >
- >Is there any way around this, say by querying
- >the keyboard through the ADB directly? Or is this a
- >hardware limitation of the keyboard?
- >
- >Thanks,
- >Doug Cutrell
- >cutrell@cerf.net
- >
-
- Doug,
-
- take a look into Inside Macintosh, and look for "Keymap". Unfortunately,
- there is a hard limit of simultaneos keydowns on smaller maps, since the
- keys sit in a matrix, which is scanned by software at interrupt time. Thus,
- you cannot decode three keys simultaneosly down if these sit in only two row|
- column combinations.
-
- Btw: I think games nedding more than command and option key as modifiers and
- mouse btn as initiator of actions are poorly designed.
-
- -Christoph
-
- Christoph P. Sold CATS Software GmbH
- Mussbacher Landstr.2
- W-6730 Neustadt (Weinstrasse)
- ger.xse0035@applelink.apple.com Germany
-
- "If an apple is fun, what the heck is an appletree?"
-