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