Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!think!ames!oliveb!pyramid!voder!apple!tecot From: tecot@apple.UUCP (Ed Tecot) Newsgroups: comp.sys.mac Subject: Re: ADB Keyboard Key Code Info Request Message-ID: <1169@apple.UUCP> Date: Wed, 24-Jun-87 16:51:13 EDT Article-I.D.: apple.1169 Posted: Wed Jun 24 16:51:13 1987 Date-Received: Fri, 26-Jun-87 06:44:34 EDT References: <619@uhccux.UUCP> Reply-To: tecot@apple.UUCP (Ed Tecot) Organization: Apple Computer Inc., Cupertino, USA Lines: 32 In article <619@uhccux.UUCP> david@uhccux.UUCP (David Lassner) writes: > >I'm hacking at some terminal emulation software which doesn't work >properly on ADB keyboards. Can someone send me or point me at the >keyboard key code info. I'm looking for the equivalent of Figure 3 >in Chapter 8 of IM-I (pg I-251) for the Mac and Figure 3 of Chapter >28 of the "Final Draft" of IM-4 (pg. 28-6) for the Mac Plus, but for >the ADB keyboards. Apple Keyboard alone would be useful, but info >on both new keyboards would be fantastic. Also, how do you tell >which keyboard is in use? Paraphrasing Inside Macintosh Volume V: KbdLast (0x218, byte) ADB Address of the keyboard last used KbdType (0x21E, byte) Keyboard type of the keyboard last used 01=ADB, 02=Extended ADB, 03=Classic, 0B=MacPlus End paraphrase To anyone intending to use the keycodes instead of the character codes in the event message: DON'T! Doing so will automatically lock your software into the current configurations and no more. Your software will not work outside the US. (Forget KanjiTalk). Apple recommends that you use the character codes provided and only use the keycodes when the character code does not give enough information (e.g. to distinguish between return and control-m). >Thanks! You're welcome. _emt