home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14018 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.9 KB

  1. 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
  2. From: sold@kit.uni-kl.de (Christoph Sold)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How do I read many keys down?
  5. Message-ID: <sold.51.713824020@kit.uni-kl.de>
  6. Date: 14 Aug 92 20:27:00 GMT
  7. References: <2482@nic.cerf.net>
  8. Sender: news@rhrk.uni-kl.de
  9. Organization: Universitaet Kaiserslautern
  10. Lines: 40
  11.  
  12. In article <2482@nic.cerf.net> cutrell@nic.cerf.net (Doug Cutrell) writes:
  13. >Subject: How do I read many keys down?
  14. >From: cutrell@nic.cerf.net (Doug Cutrell)
  15. >Date: 10 Aug 92 18:16:08 GMT
  16. >I am writing a game and I want to implement an interface
  17. >that allows for the user pressing several keys at once.
  18. >That is, the user holds down lots of keys at once and
  19. >I need to be able to tell which ones are down.  I know
  20. >about GetKeys, but the FAQ list for this group states that
  21. >at most two non-modifier keys will be reported at any
  22. >given time.
  23. >Is there any way around this, say by querying
  24. >the keyboard through the ADB directly?  Or is this a
  25. >hardware limitation of the keyboard?
  26. >Thanks,
  27. >Doug Cutrell
  28. >cutrell@cerf.net
  29. >
  30.  
  31. Doug,
  32.  
  33. take a look into Inside Macintosh, and look for "Keymap". Unfortunately, 
  34. there is a hard limit of simultaneos keydowns on smaller maps, since the 
  35. keys sit in a matrix, which is scanned by software at interrupt time. Thus, 
  36. you cannot decode three keys simultaneosly down if these sit in only two row|
  37. column combinations.
  38.  
  39. Btw: I think games nedding more than command and option key as modifiers and 
  40. mouse btn as initiator of actions are poorly designed.
  41.  
  42. -Christoph
  43.  
  44. Christoph P. Sold                   CATS Software GmbH
  45.                                     Mussbacher Landstr.2
  46.                                     W-6730 Neustadt (Weinstrasse)
  47. ger.xse0035@applelink.apple.com     Germany
  48.  
  49. "If an apple is fun, what the heck is an appletree?"
  50.