[comp.sys.apple2] One finger cotrol sequences

THROOP@GRIN1.BITNET ("Throop,Henry B") (12/20/90)

[Dave Whitney about reading control key on gs]

For the record, the keyboard register is at $C025 on the gs.  It is
not available on pre-gs //s.

Bit     Meaning
7       Open-Apple pressed
6       Option pressed
5       Modifier key latch updated
4       Numeric keypad key pressed
3       Key held down
2       Caps lock down
1       Control pressed
0       Shift pressed

This register is updated whenever the status of a key has changed;
it is not held until read and reset, for example.

Note that the Open-Apple and Option keys can also be detected by reading
bit 7 of $C061 and $C062 on pre-gs machines; they correspond to the button
inputs from the joystick.

Henry

(A few people asked me about my Mandelbrot program I mentioned earlier.
I'll post it on c.s.a2 when I get back home and can post, in a couple of
days.)

@sig.

AABENSON@MTUS5.BITNET (12/21/90)

Just a note on what THROOP says about detecting open-apple keys.

Yes, you can use $c061 and $C062 to detect OA and Option (formerly closed-
apple) on pre-GS machines... BUT -- if you're on a IIgs, it would be
better to use $C025 for keyboard stuff, and use $C061 & $C062 for joystick
stuff.  I know this created a problem once, because some old comm program
I used (I forget the name) used an extra program to read the joystick...
It did this, because it used button 0 to stop the display, but it ALSO
used open-apple sequences... so whenever you'd press OA-something, the
display would pause until you pressed OA again (not all the time though).
I think it was some cheapo PD program.