Skip to main content
Home Forums 68kMLA Reading more than two keys? — #5
Post #5 by onlyonemac
Source Forum68kMLA
CategoryPeripherals
Post DateWed, 11 Sep 2013 - 16:51
Original URLhttps://68kmla.org/bb/threads/reading-more-than-two-keys.28841/
Post
What about the special characters that require option-shift-letter? That'd be 3 keys, no?
Those aren't keyDown events; they're modifiers. They're passed differently.
Inside Macintosh I said:
If you wish to periodically inspect the state of the keyboard or keypad—say, while the mouse button is being held down—use the procedure GetKeys; this procedure is also the only way to tell whether a modifier key is being pressed alone.
Inside Macintosh Toolbox Essentials said:
In addition to getting keyboard events when the user presses or releases a key, you can directly read the keyboard (and keypad) using the GetKeys procedure.
I'd thought of that, but all I can find out is that it needs some sort of a "mask", and I don't know how the heck one is supposed to know what that means.
mp.ls