home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13268 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.2 KB  |  26 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!utkcs2!utkux1.utk.edu!utkvx4.utk.edu!djpegg
  3. From: djpegg@utkvx4.utk.edu (PEGG, DAVID J)
  4. Subject: How do I see if modifiers are down?
  5. Message-ID: <31JUL199213454178@utkvx4.utk.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: usenet@utkux1.utk.edu (USENET News System)
  8. Organization: University of Tennessee Computing Center
  9. Date: Fri, 31 Jul 1992 18:45:00 GMT
  10. Lines: 14
  11.  
  12. I want to put a feature in my data analysis program that looks to see if Shift
  13. and Option are down (without any other keys).  If they are, then it gets the
  14. mouse position and tells you where it is in the graph's coordinates.  I'm using
  15. GetKeys to see if the keys are pressed.  But I can't seem to get my keyMap to
  16. show anything for any modifier keys (as well as some keys that really surprise
  17. me, like 't' and 'y').  Also, no number keys show up, on the number pad or on
  18. the regular keyboard.
  19.  
  20. I'm using Think C 5.0.2 with System 7, but programming using mostly stuff from
  21. IM volumes I & II.  I know it has to be possible to do this, since the Key Caps
  22. DA recognizes modifier keys, even when nothing else is pressed.
  23.  
  24. Thanks in advance for your help,
  25.       Mike
  26.