alps64: unimap definition
[tmk_keyboard.git] / keyboard / alps64 / unimap_trans.h
CommitLineData
6b34906b 1/*
2Copyright 2016 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#ifndef UNIMAP_TRNAS_H
18#define UNIMAP_TRNAS_H
19
20#include <stdint.h>
21#include <avr/pgmspace.h>
22#include "unimap.h"
23
24
093bfd69 25#define UNIMAP_ALPS64( \
26 K35,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,K74,K2A, \
27 K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K2F,K30, K31, \
28 K39,K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, K28, \
29 K79,K64,K1D,K1B,K06,K19,K05,K11,K10,K36,K37,K38, K7D,K29, \
30 K78,K7B,K7A, K2C, K65,K7E,K7F,K7C \
31) UNIMAP( \
32 NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
33 K29, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
34 K35,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,K74,K2A, NO, NO, NO, NO, NO, NO, NO, \
35 K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K2F,K30, K31, NO, NO, NO, NO, NO, NO, NO, \
36 K39,K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, NO, K28, NO, NO, NO, NO, \
37 K79,K64,K1D,K1B,K06,K19,K05,K11,K10,K36,K37,K38, NO, K7D, NO, NO, NO, NO, NO, \
38 K78,K7B,K7A,NO, K2C, NO, NO, K7E,K7F,K65,K7C, NO, NO, NO, NO, NO, NO \
39)
40
41
6b34906b 42/* Mapping to Universal keyboard layout
43 * ,-----------------------------------------------------------.
44 * |` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bsp|
45 * |-----------------------------------------------------------|
46 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |
47 * |-----------------------------------------------------------|
48 * |Caps | A| S| D| F| G| H| J| K| L| ;| '|Enter |
49 * |-----------------------------------------------------------|
50 * |Shft| \| Z| X| C| V| B| N| M| ,| .| /|Shift |Esc|
51 * |-----------------------------------------------------------'
52 * |Ctrl|Gui |Alt | Space |App |Alt |Gui |Ctrl |
53 * `-----------------------------------------------------------'
54 *
55 * ,-----------------------------------------------------------.
56 * |36 |37 |46 |47 |56 |57 |66 |67 |76 |77 |06 |07 |17 |26 |27 |
57 * |-----------------------------------------------------------|
58 * |34 |35 |44 |45 |54 |55 |64 |65 |75 |05 |15 |16 |25 |24 |
59 * |-----------------------------------------------------------|
60 * |32 |33 |43 |52 |53 |63 |73 |74 |03 |04 |13 |14 | 23 |
61 * |-----------------------------------------------------------|
62 * |31 |41 |42 |51 |61 |62 |71 |72 |01 |02 |11 |12 |21 |22 |
63 * |-----------------------------------------------------------|
64 * |30 |40 |50 | 60 |70 |00 |10 |20 |
65 * `-----------------------------------------------------------'
66 */
67const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = {
68 { UNIMAP_RALT, UNIMAP_M, UNIMAP_COMM, UNIMAP_K, UNIMAP_L, UNIMAP_O, UNIMAP_0, UNIMAP_MINS }, /* 00-07 */
69 { UNIMAP_RGUI, UNIMAP_DOT, UNIMAP_SLSH, UNIMAP_SCLN, UNIMAP_QUOT, UNIMAP_P, UNIMAP_LBRC, UNIMAP_EQL }, /* 10-17 */
70 { UNIMAP_RCTL, UNIMAP_RSFT, UNIMAP_ESC, UNIMAP_ENT, UNIMAP_BSLS, UNIMAP_RBRC, UNIMAP_JYEN, UNIMAP_BSPC }, /* 20-27 */
71 { UNIMAP_LCTL, UNIMAP_LSFT, UNIMAP_CAPS, UNIMAP_A, UNIMAP_TAB, UNIMAP_Q, UNIMAP_GRV, UNIMAP_1 }, /* 30-37 */
72 { UNIMAP_LGUI, UNIMAP_NUBS, UNIMAP_Z, UNIMAP_S, UNIMAP_W, UNIMAP_E, UNIMAP_2, UNIMAP_3 }, /* 40-47 */
73 { UNIMAP_LALT, UNIMAP_X, UNIMAP_D, UNIMAP_F, UNIMAP_R, UNIMAP_T, UNIMAP_4, UNIMAP_5 }, /* 50-57 */
74 { UNIMAP_SPC, UNIMAP_C, UNIMAP_V, UNIMAP_G, UNIMAP_Y, UNIMAP_U, UNIMAP_6, UNIMAP_7 }, /* 60-67 */
75 { UNIMAP_APP, UNIMAP_B, UNIMAP_N, UNIMAP_H, UNIMAP_J, UNIMAP_I, UNIMAP_8, UNIMAP_9 }, /* 70-77 */
76};
77
78#endif
79
80
Imprint / Impressum