1 /* Copyright (C) 2011 by Jacob Alexander
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to deal
5 * in the Software without restriction, including without limitation the rights
6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 * copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 // This file contains various key layouts for the Kaypro 1 keyboard
28 // ----- Variables -----
30 static uint8_t kaypro1_ModifierMask[] = { 0xF5, 0xF6 };
32 static uint8_t kaypro1_DefaultMap[] = { 0,
40 KEY_BACKSPACE, // 0x08
91 KEY_SEMICOLON, // 0x3B
123 KEY_LEFT_BRACE, // 0x5B
124 KEY_BACKSLASH, // 0x5C
125 KEY_RIGHT_BRACE, // 0x5D
210 KEYPAD_PERIOD, // 0xB2
227 KEYPAD_ENTER, // 0xC3
243 KEYPAD_COMMA, // 0xD3
260 KEYPAD_MINUS, // 0xE4
277 KEY_LEFT_SHIFT, // 0xF5
290 static uint8_t kaypro1_ColemakMap[] = { 0,
298 KEY_BACKSPACE, // 0x08
381 KEY_LEFT_BRACE, // 0x5B
382 KEY_BACKSLASH, // 0x5C
383 KEY_RIGHT_BRACE, // 0x5D
402 KEY_SEMICOLON, // 0x70
468 KEYPAD_PERIOD, // 0xB2
485 KEYPAD_ENTER, // 0xC3
501 KEYPAD_COMMA, // 0xD3
518 KEYPAD_MINUS, // 0xE4
535 KEY_LEFT_SHIFT, // 0xF5