Path: news.mitre.org!blanket.mitre.org!philabs!newsjunkie.ans.net!newsfeeds.ans.net!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.digital.com!pa.dec.com!nntpd.lkg.dec.com!not-for-mail From: Fred Kleinsorge Newsgroups: comp.os.vms Subject: Re: keyboard scancodes Date: Fri, 14 Nov 1997 14:31:51 -0400 Organization: OpenVMS Engineering Lines: 42 Message-ID: <346C60D7.1D234574@star.enet.dec_nospam.com> References: <346AFB06.2F39@pi.net> NNTP-Posting-Host: fgkaxp.zko.dec.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0b8Gold (X11; I; OpenVMS V7.1 DEC 3000 - M700) Softwaregroep TB/GA wrote: > > Hello, > > Does anybody know if there is a way how to determine what > the scancodes are which a keyboard sends to the keyboard > driver on an alpha system ? Is there a table of scancodes > for the LK46W-A2 keyboard ? > > Are there some programs which intercept and display these scancodes ? > > NB Not the xwindows keysyms ! Just to clarify some things. All keyboards since the AlphaPC (DEC2000) use a PS2 compatable keyboard. We sell variations like the LK46W that look like LK400 keyboards. These keyboards are still PS2 compatable, but have additional keycodes. The OpenVMS device driver places the keyboards (except the AlphaBook) into scan set 3 mode. It then converts the scan set 3 codes into LK401 compatable keycodes. For PS2 layout keyboards, it converts to LK444/443 -- which is a LK400 compatable PC layout keyboard. So to VMS applications, the keycodes look just like a LK400/443/444 is connected to the system. This minimized changes to the upper layers of software (mostly hacks). This means, however, that custom keyboards can have a slight problem in that new keys may not be translated into anything. Generally speaking, I have worked with most 3rd parties that needed to build custom keyboards to create them a private keyboard driver for their application. A real solution would be to allow a downloadable translation table... sigh. In my spare time someday. Or maybe I'll stick the keyboard decoder bits out onto the freeware CD and let people whack at it themselves (it's pretty ugly). -- Frederick G. Kleinsorge | Standard disclaimer: All opinions OpenVMS Engineering | expressed are mine, and not those of my Digital Equipment Corporation | employer, or any one else with half a kleinsorge@star.enet.dec.com | clue. No refunds on sale items.