stason.org logo lotus


previous page: 2.4) What about resources? (Memory - Mac Programming)page up: Mac Programming FAQnext 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)

 Books
 TULARC
















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:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

os, Mac, macintosh, apple, programming, software







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