
Apple II Computer Info
#############################################################################
### FILE : keypresses
#############################################################################
### Created : Friday, September 27, 1996 Modified: Friday, September 27, 1996
### File Type: "TEXT" File Creator: "LMAN"
### File Size: 4094 bytes 3 KB
#############################################################################
Newsgroups: comp.sys.apple2.programmer
Path: news.uiowa.edu!chi-
news.cic.net!newsfeed.internetmci.com!news.msfc.nasa.gov!pendragon!ames!waikato!co
mp.vuw.ac.nz!actrix.gen.nz!dempson
Subject: Re: Control key
Organization: Actrix - Internet Services
Date: Tue, 13 Feb 1996 12:29:15 GMT
X-Nntp-Posting-Host: atlantis.actrix.gen.nz
Lines: 82
> >>>How is it that the Event Manager is able to determine that the Control key
> >>>was being pressed during the last keydown event?
> >
> >>C025 (don't use it) is well documented to hold the status of
> > ^^^^^^^^^^^^
> >>control, shift, apple, option, keypad, etc., though with slight
> >>inaccuracies wrt control and the arrows.
I don't understand this comment about control/arrow inaccuracies. It
has always worked fine for me - the arrow keys by themselves do not
indicate that the control key is down, so they can be detected
(because the ASCII code was a control character). If Control-Arrow is
pressed, it cannot be distinguished from Control and the corresponding
letter.
(This could be avoided by bypassing the standard keyboard handling
provided by the keyboard microcontroller, and processing key up/down
sequences directly, using the ADB service request mechanism - you then
get scan codes for the keys, so every key can be identified correctly.)
> I've used it in a few programs that need to get around the C crap of
> requiring a <return> key on every entry, and I've never had a problem
> with it.
>
> So, why not?
Compatibility.
Apple II Computer Technical Information : Apple II Family Hardware Info
ftp://ground.ecn.uiowa.edu/2/apple2/miscinfo/hardware : May 2001 : 245 of 572
Comentarios a estos manuales