1 /* Copyright (C) 2012 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
22 #ifndef __UNIVACF3W9_H
23 #define __UNIVACF3W9_H
25 // This file contains various key layouts for the Univac F3W9 keyboard
29 // ----- Variables -----
30 static uint8_t univacf3w9_ModifierMask[] = { 0x81, 0x83, 0x85, 0x87, 0x89, 0x8B, 0x8D, 0x8F };
32 static uint8_t univacf3w9_DefaultMap[] = {
55 KEYPAD_PERIOD, // 0x16
78 KEYPAD_ASTERIX, // 0x2D
99 KEY_CAPS_LOCK, // 0x42
109 KEY_SEMICOLON, // 0x4C
124 KEY_LEFT_BRACE, // 0x5B
125 KEY_RIGHT_BRACE, // 0x5C
126 KEY_BACKSLASH, // 0x5D
128 KEY_PAGE_DOWN, // 0x5F
142 KEY_BACKSPACE, // 0x6D
166 KEY_RIGHT_SHIFT, // 0x85
168 KEY_LEFT_SHIFT, // 0x87
172 KEY_LEFT_CTRL, // 0x8B
176 KEY_RIGHT_CTRL, // 0x8F
179 static uint8_t univacf3w9_ColemakMap[] = {
201 KEYPAD_ENTER, // 0x15
202 KEYPAD_PERIOD, // 0x16
204 KEYPAD_EQUAL, // 0x18
224 KEYPAD_MINUS, // 0x2C
225 KEYPAD_ASTERIX, // 0x2D
226 KEYPAD_SLASH, // 0x2E
227 KEY_NUM_LOCK, // 0x2F
246 KEY_CAPS_LOCK, // 0x42
270 KEY_SEMICOLON, // 0x5A
271 KEY_LEFT_BRACE, // 0x5B
272 KEY_RIGHT_BRACE, // 0x5C
273 KEY_BACKSLASH, // 0x5D
275 KEY_PAGE_DOWN, // 0x5F
289 KEY_BACKSPACE, // 0x6D
313 KEY_RIGHT_SHIFT, // 0x85
315 KEY_LEFT_SHIFT, // 0x87
319 KEY_LEFT_CTRL, // 0x8B