Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!apollo!ganek From: ganek@apollo.COM (Dan Ganek) Newsgroups: comp.sys.apollo Subject: Re: Need help mapping Apollo keypad Message-ID: <4329e891.74ef@apollo.COM> Date: 11 May 89 20:32:00 GMT References: <8905090335.AA29079@umix.cc.umich.edu> <4769@teraida.UUCP> Organization: Apollo Computer, Chelmsford, Mass. Lines: 61 > From: bosart@teraida.UUCP (Donald Bosart @ Teradyne EDA Inc., Santa Clara, Calif.) > In article <8905090335.AA29079@umix.cc.umich.edu> GBOPOLY1@NUSVM.BITNET (fclim) writes: > > In article <761@ednor.UUCP>, Martha Godwin (mjg%ednor.uucp@uunet.uu.net) > >writes > > > >>We have a program which needs to differentiate between the number keys > >>across the top of the keypad and the numeric keypad on the right side. > >>We have found a way to cause the numeric keys on the right to return > >>escape sequences like ^[Ot, but once our program is running, these keys > >>retain their numeric value (i.e. the 7 key displays a 7). > > > >Me too, I would like to know how to distinguish between these numeric > >keys. Thanks. > > As I understand key events on the Apollo, this cannot be done on a pre-SR10.1 > node. SR10.1 with the Domain Shared-X product installed gives you access to > these events (numeric keypad keys distinct from number keys) but you'll have > to write some special event interface stuff to access it. 10.2 should have > more general access and document that access. Your best bet is to contact > your local Apollo support people (not the hotline). > > This is my first posting; please accept my apology for any etiquette errors. > > Disclaimer: The above represents only my opinion. > Donald R. Bosart Donald, please don't let it stop you from posting again but you can in fact distinguish between the numeric keypad and the main keyboard array without using the new DOMAIN/X11 SW. It wasn't clear from the original poster as to whether they were using GPR or not. I suspect they are using GPR because they said : "We have found a way to cause the numeric keys on the right to return escape sequences like ^[Ot, but once our program is running, these keys retain their numeric value (i.e. the 7 key displays a 7)." which implies they used DM keydefs which don't work within a GPR program The numeric pad keys send TWO events to a GPR program. The first event is (from /sys/ins/kbd.ins.pas): KBD_$NUMERIC_KEYPAD = char(16#9E); {KEYPAD introducer} the second character is the ASCII character on the label. Most program don't enable KBD_$NUMERIC_KEYPAD so all they see is the single ASCII char. This was implemented in SR9.5 (9.2?). While I'm here I might as well mention some of the SR10.2 kbd goodies. There are new GPR input events for Latin-1, full support of the function keys, and X11 style physical (up/down) keyboard events. We also implemented programmable auto-repeat and modifier keys (yes Virginia, you can now disable the CAPS LOCK key). /dan ganek ganek@apollo.com Apollo Computer Co.