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