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