Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 2 - Event Manager / Event Manager Reference
Event Manager Routines


Reading the Keyboard

The Event Manager reports keyboard events one at a time at your application's request when you use the WaitNextEvent, EventAvail, or GetNextEvent function. In addition to getting keyboard events when the user presses or releases a key, you can directly read the keyboard (and keypad) at any time using the GetKeys procedure.

You can also use the KeyTranslate function to convert virtual key codes to character code values using a specified 'KCHR' resource.


Subtopics
GetKeys
KeyTranslate

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996