IsKeyDown
IsKeyDown(keyCode, isHardKeyboard)
Determines if the specified key is currently down.
DISCUSSION
- keyCode
- The keycode that you want to test.
- isHardKeyboard
True
if you want the hardware keyboard tested. A value ofnil
means that the on-screen keyboard is tested.
- return value
- Returns
true
if the specified key is down on the keyboard.
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.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help