Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.unix.sysv386 Subject: Re: Are these ISC X11 problems fixed? Keywords: keyboard Message-ID: <21836@grebyn.com> Date: 6 Sep 90 04:38:50 GMT References: <21681@grebyn.com> <3388@syma.sussex.ac.uk> Reply-To: ckp@grebyn.UUCP (Checkpoint Technologies) Organization: Grebyn Timesharing, Vienna, VA, USA Lines: 25 In article <3388@syma.sussex.ac.uk> jonm@syma.sussex.ac.uk (Jonathan Meyer) writes: >ckp@grebyn.com (Checkpoint Technologies) writes: >> keyboard is not uniquely identifiable. For instance, I'd like to bind >> the numeric keypad ENTER key differently than the main keyboard ENTER >> key. This does not appear to be possible. >> > >In fact, the two keys are hardwired to send the same scancode, so as >far as the PC is concerned they are identical. Sad, but true (I've >often wanted to distinguish them). Au contrare - I've done it. The numeric keypad "enter" key sends two scan codes for "press" and two for "release". The first code is 224, otherwise a "release" code for an undefined key. The second is the same scan code that the normal "enter" key. By looking for the leading special up-code, you can distinguish all the extra keys. Other than this, the extra keys do just send AT keyboard scan codes or combinations of scan codes (for instance, the arrow keys are sensitive to the state of Num Lock and the shift key, and they will synthesize shift key scan codes to be sure that they're interpreted as arrow keys). -- First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / / \\ / / Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o Now for the witty part: I'm pink, therefore, I'm spam! \/