Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 4 - Keyboard Enhancements / Keyboard Reference
Methods and Functions for Handling Keystrokes /


IsKeyDown

IsKeyDown(keyCode, isHardKeyboard)

Determines if the specified key is currently down.

keyCode
The keycode that you want to test.

isHardKeyboard
True if you want the hardware keyboard tested. A value of nil means that the on-screen keyboard is tested.

return value
Returns true if the specified key is down on the keyboard.

DISCUSSION

This function works for both on-screen and hardware keyboards.

Note that the system maintains two separate key maps, one for all on-screen keyboards, and one for the connected hardware keyboard.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help