lotus



previous page: 2.4) What about resources? (Memory - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.2) How do I move the mouse cursor to a specific position? (User / Machine interaction - Mac Programming)

3.1) How do I read the modifier keys of the keyboard? (User / Machine interaction - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

3.1) How do I read the modifier keys of the keyboard? (User / Machine interaction - Mac Programming)

Just call EventAvail and check the event.modifiers field.
Only works when you are in the foreground. You can also use
GetKeys(), or (as a last resort) check the lo-mem global KeyMap
directly.

 

Continue to:















TOP
previous page: 2.4) What about resources? (Memory - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.2) How do I move the mouse cursor to a specific position? (User / Machine interaction - Mac Programming)