Important: The information in this document is obsolete and should not be used for new development.
Reading the Keyboard
The Event Manager reports keyboard events one at a time at your application's request when you use theWaitNextEvent,EventAvail, orGetNextEventfunction. 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 theGetKeysprocedure.You can also use the
KeyTranslatefunction to convert virtual key codes to character code values using a specified 'KCHR' resource.
Subtopics
- GetKeys
- KeyTranslate