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