atKeynames.h revision 61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4cc
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Permission to use, copy, modify, distribute, and sell this software and its
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * documentation for any purpose is hereby granted without fee, provided that
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * the above copyright notice appear in all copies and that both that
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * copyright notice and this permission notice appear in supporting
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * documentation, and that the name of Thomas Roell not be used in
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * advertising or publicity pertaining to distribution of the software without
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * specific, written prior permission. Thomas Roell makes no representations
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * about the suitability of this software for any purpose. It is provided
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * "as is" without express or implied warranty.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * PERFORMANCE OF THIS SOFTWARE.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Copyright (c) 1994-2003 by The XFree86 Project, Inc.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * copy of this software and associated documentation files (the "Software"),
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * to deal in the Software without restriction, including without limitation
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * and/or sell copies of the Software, and to permit persons to whom the
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Software is furnished to do so, subject to the following conditions:
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * The above copyright notice and this permission notice shall be included in
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * all copies or substantial portions of the Software.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * OTHER DEALINGS IN THE SOFTWARE.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Except as contained in this notice, the name of the copyright holder(s)
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * and author(s) shall not be used in advertising or otherwise to promote
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * the sale, use or other dealings in this Software without prior written
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * authorization from the copyright holder(s) and author(s).
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define MAX_KEYCODE (NUM_KEYCODES + MIN_KEYCODE - 1)
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * NOTE: The AT/MF keyboards can generate (via the 8042) two (MF: three)
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * sets of scancodes. Set3 can only be generated by a MF keyboard.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Set2 sends a makecode for keypress, and the same code prefixed by a
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * F0 for keyrelease. This is a little bit ugly to handle. Thus we use
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * here for X386 the PC/XT compatible Set1. This set uses 8bit scancodes.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Bit 7 ist set if the key is released. The code E0 switches to a
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * different meaning to add the new MF cursorkeys, while not breaking old
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * applications. E1 is another special prefix. Since I assume that there
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * will be further versions of PC/XT scancode compatible keyboards, we
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * may be in trouble one day.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * IDEA: 1) Use Set2 on AT84 keyboards and translate it to MF Set3.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 2) Use the keyboards native set and translate it to common keysyms.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * definition of the AT84/MF101/MF102 Keyboard:
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * ============================================================
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Defined Key Cap Glyphs Pressed value
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Key Name Main Also (hex) (dec)
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * ---------------- ---------- ------- ------ ------
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_SemiColon /* ;(SemiColon) :(Colon) 0x27 */ 39
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_Quote /* ' (Apostr) " (Quote) 0x28 */ 40
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_Tilde /* ` (Accent) ~ (Tilde) 0x29 */ 41
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_BSlash /* \(BckSlash) |(VertBar)0x2b */ 43
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_Period /* . (Period) >(Greater)0x34 */ 52
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_KP_Decimal /* . (Decimal) Delete 0x53 */ 83
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync /* NOTUSED 0x55 */
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * The 'scancodes' below are generated by the server, because the MF101/102
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * keyboard sends them as sequence of other scancodes
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#define KEY_HKTG /* Hirugana/Katakana tog 0x70 */ 112
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Fake 'scancodes' in the following ranges are generated for 2-byte
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * codes not handled elsewhere. These correspond to most extended keys
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * on so-called "Internet" keyboards:
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0x79-0x93
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0x96-0xa1
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0xa3-0xac
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0xb1-0xb4
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0xba-0xbd
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0xcc-0xd2
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0xd6-0xf7
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * Remapped 'scancodes' are generated for single-byte codes in the range
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync * 0x59-0x5f,0x62-0x76. These are used for some extra keys on some keyboards.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync/* These are for "notused" and "unknown" entries in translation maps. */
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync#endif /* _ATKEYNAMES_H */