nextkeyboard.h
1 // SPDX-FileCopyrightText: 1997 Juergen Hannken-Illjes for The NetBSD Foundation 2 // 3 // SPDX-License-Identifier: BSD-2-Clause 4 5 #include "wsksymdef.h" 6 7 /* $NetBSD: wskbdmap_next.c,v 1.5 2008/04/28 20:23:30 martin Exp $ */ 8 9 /*- 10 * Copyright (c) 1997 The NetBSD Foundation, Inc. 11 * All rights reserved. 12 * 13 * This code is derived from software contributed to The NetBSD Foundation 14 * by Juergen Hannken-Illjes. 15 * 16 * Redistribution and use in source and binary forms, with or without 17 * modification, are permitted provided that the following conditions 18 * are met: 19 * 1. Redistributions of source code must retain the above copyright 20 * notice, this list of conditions and the following disclaimer. 21 * 2. Redistributions in binary form must reproduce the above copyright 22 * notice, this list of conditions and the following disclaimer in the 23 * documentation and/or other materials provided with the distribution. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38 #define KC(n) n 39 40 typedef unsigned short keysym_t; 41 42 static const keysym_t nextkbd_keydesc_us[] = { 43 /* pos normal shifted */ 44 KC(3), KS_backslash, KS_bar, 45 KC(4), KS_bracketright, KS_braceright, 46 KC(5), KS_bracketleft, KS_braceleft, 47 KC(6), KS_i, 0, 48 KC(7), KS_o, 0, 49 KC(8), KS_p, 0, 50 KC(9), KS_Left, 0, 51 KC(11), KS_KP_0, 0, 52 KC(12), KS_KP_Decimal, 0, 53 KC(13), KS_KP_Enter, 0, 54 KC(15), KS_Down, 0, 55 KC(16), KS_Right, 0, 56 KC(17), KS_KP_1, 0, 57 KC(18), KS_KP_4, 0, 58 KC(19), KS_KP_6, 0, 59 KC(20), KS_KP_3, 0, 60 KC(21), KS_KP_Add, 0, 61 KC(22), KS_Up, 0, 62 KC(23), KS_KP_2, 0, 63 KC(24), KS_KP_5, 0, 64 KC(27), KS_BackSpace, 0, 65 KC(28), KS_equal, KS_plus, 66 KC(29), KS_minus, KS_underscore, 67 KC(30), KS_8, KS_asterisk, 68 KC(31), KS_9, KS_parenleft, 69 KC(32), KS_0, KS_parenright, 70 KC(33), KS_KP_7, 0, 71 KC(34), KS_KP_8, 0, 72 KC(35), KS_KP_9, 0, 73 KC(36), KS_KP_Subtract, 0, 74 KC(37), KS_KP_Multiply, 0, 75 KC(38), KS_grave, KS_asciitilde, 76 KC(39), KS_KP_Equal, KS_bar, 77 KC(40), KS_KP_Divide, KS_backslash, 78 KC(42), KS_Return, 0, 79 KC(43), KS_apostrophe, KS_quotedbl, 80 KC(44), KS_semicolon, KS_colon, 81 KC(45), KS_l, 0, 82 KC(46), KS_comma, KS_less, 83 KC(47), KS_period, KS_greater, 84 KC(48), KS_slash, KS_question, 85 KC(49), KS_z, 0, 86 KC(50), KS_x, 0, 87 KC(51), KS_c, 0, 88 KC(52), KS_v, 0, 89 KC(53), KS_b, 0, 90 KC(54), KS_m, 0, 91 KC(55), KS_n, 0, 92 KC(56), KS_space, 0, 93 KC(57), KS_a, 0, 94 KC(58), KS_s, 0, 95 KC(59), KS_d, 0, 96 KC(60), KS_f, 0, 97 KC(61), KS_g, 0, 98 KC(62), KS_k, 0, 99 KC(63), KS_j, 0, 100 KC(64), KS_h, 0, 101 KC(65), KS_Tab, 0, 102 KC(66), KS_q, 0, 103 KC(67), KS_w, 0, 104 KC(68), KS_e, 0, 105 KC(69), KS_r, 0, 106 KC(70), KS_u, 0, 107 KC(71), KS_y, 0, 108 KC(72), KS_t, 0, 109 KC(73), KS_Escape, 0, 110 KC(74), KS_1, KS_exclam, 111 KC(75), KS_2, KS_at, 112 KC(76), KS_3, KS_numbersign, 113 KC(77), KS_4, KS_dollar, 114 KC(78), KS_7, KS_ampersand, 115 KC(79), KS_6, KS_asciicircum, 116 KC(80), KS_5, KS_percent, 117 118 KC(90), KS_Shift_L, 0, 119 KC(91), KS_Shift_R, 0, 120 KC(92), KS_Alt_L, 0, 121 KC(93), KS_Alt_R, 0, 122 KC(94), KS_Control_L, 0, 123 KC(95), KS_Cmd1, 0, 124 KC(96), KS_Cmd2, 0, 125 126 // special exception for volume up, down + brightness up, down 127 KC(26), KS_AudioLower, 0, // vol up 128 KC(2), KS_AudioRaise, 0, // vol down 129 KC(25), KS_Cmd_BrightnessUp, 0, // bright up 130 KC(1), KS_Cmd_BrightnessDown, 0, // bright down 131 132 };