1 /* Copyright (C) 2013 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 Sanyo MBC-55X Computer Keyboard
28 // ----- Variables -----
30 static uint8_t mbc55x_ModifierMask[] = { 0xF5, 0xF6 };
32 static uint8_t mbc55x_DefaultMap[] = {
41 KEY_BACKSPACE, // 0x08
92 KEY_SEMICOLON, // 0x3B
124 KEY_LEFT_BRACE, // 0x5B
125 KEY_BACKSLASH, // 0x5C
126 KEY_RIGHT_BRACE, // 0x5D
211 KEYPAD_PERIOD, // 0xB2
228 KEYPAD_ENTER, // 0xC3
244 KEYPAD_COMMA, // 0xD3
261 KEYPAD_MINUS, // 0xE4
278 KEY_LEFT_SHIFT, // 0xF5
291 static uint8_t mbc55x_ColemakMap[] = {
300 KEY_BACKSPACE, // 0x08
383 KEY_LEFT_BRACE, // 0x5B
384 KEY_BACKSLASH, // 0x5C
385 KEY_RIGHT_BRACE, // 0x5D
404 KEY_SEMICOLON, // 0x70
470 KEYPAD_PERIOD, // 0xB2
487 KEYPAD_ENTER, // 0xC3
503 KEYPAD_COMMA, // 0xD3
520 KEYPAD_MINUS, // 0xE4
537 KEY_LEFT_SHIFT, // 0xF5