]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - keyboard/hhkb/unimap_common.h
hhkb: Add unimap_jp
[max/tmk_keyboard.git] / keyboard / hhkb / unimap_common.h
1 /*
2 Copyright 2016 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 #ifndef UNIMAP_COMMON_H
18 #define UNIMAP_COMMON_H
19
20 #include <stdint.h>
21 #include <avr/pgmspace.h>
22 #include "unimap.h"
23
24
25 /* HHKB JP
26  * ,-----------------------------------------------------------.
27  * |`  |1  |2  |3  |4  |5  |6  |7  |8  |9  |0  |-  |=  |JPY|BS |
28  * |-----------------------------------------------------------|
29  * |Tab  |Q  |W  |E  |R  |T  |Y  |U  |I  |O  |P  |[  |]  |Enter|
30  * |------------------------------------------------------`    |
31  * |Caps  |A  |S  |D  |F  |G  |H  |J  |K  |L  |;  |'  |#  |    |
32  * |-----------------------------------------------------------|
33  * |Shift  |Z  |X  |C  |V  |B  |N  |M  |,  |.  |/  |Ro |Up |Shi|
34  * |-----------------------------------------------------------|
35  * |Ctl||Esc|Gui|Alt|Mhn|         |Hen|Kan|Alt|Ctl||Lef|Dow|Rig|
36  * `-----------------------------------------------------------'
37  * Esc          = Grave(`)
38  * Control      = Caps Lock
39  * Left Fn      = Left Control
40  * Right Fn     = Right Control
41  */
42 // row:16 x col:8
43 const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = {
44     // 0
45     {
46         UNIMAP_NO,
47         UNIMAP_NO,
48         UNIMAP_GRAVE,
49         UNIMAP_TAB,
50         UNIMAP_LCTRL,
51         UNIMAP_LSHIFT,
52         UNIMAP_CAPSLOCK,
53         UNIMAP_NO,
54     },
55     // 1
56     {
57         UNIMAP_NO,
58         UNIMAP_NO,
59         UNIMAP_4,
60         UNIMAP_E,
61         UNIMAP_MHEN,
62         UNIMAP_C,
63         UNIMAP_D,
64         UNIMAP_NO,
65     },
66     // 2
67     {
68         UNIMAP_NO,
69         UNIMAP_NO,
70         UNIMAP_3,
71         UNIMAP_W,
72         UNIMAP_LALT,
73         UNIMAP_X,
74         UNIMAP_S,
75         UNIMAP_NO,
76     },
77     // 3
78     {
79         UNIMAP_NO,
80         UNIMAP_NO,
81         UNIMAP_1,
82         UNIMAP_NO,
83         UNIMAP_ESCAPE,
84         UNIMAP_NO,
85         UNIMAP_NO,
86         UNIMAP_NO,
87     },
88     // 4
89     {
90         UNIMAP_NO,
91         UNIMAP_NO,
92         UNIMAP_NO,
93         UNIMAP_NO,
94         UNIMAP_NO,
95         UNIMAP_NO,
96         UNIMAP_NO,
97         UNIMAP_NO,
98     },
99     // 5
100     {
101         UNIMAP_NO,
102         UNIMAP_NO,
103         UNIMAP_5,
104         UNIMAP_R,
105         UNIMAP_NO,
106         UNIMAP_V,
107         UNIMAP_F,
108         UNIMAP_NO,
109     },
110     // 6
111     {
112         UNIMAP_NO,
113         UNIMAP_NO,
114         UNIMAP_2,
115         UNIMAP_Q,
116         UNIMAP_LGUI,
117         UNIMAP_Z,
118         UNIMAP_A,
119         UNIMAP_NO,
120     },
121     // 7
122     {
123         UNIMAP_NO,
124         UNIMAP_NO,
125         UNIMAP_6,
126         UNIMAP_T,
127         UNIMAP_SPACE,
128         UNIMAP_B,
129         UNIMAP_G,
130         UNIMAP_NO,
131     },
132     // 8
133     {
134         UNIMAP_NO,
135         UNIMAP_NO,
136         UNIMAP_9,
137         UNIMAP_I,
138         UNIMAP_KANA,
139         UNIMAP_COMMA,
140         UNIMAP_K,
141         UNIMAP_NO,
142     },
143     // 9
144     {
145         UNIMAP_NO,
146         UNIMAP_NO,
147         UNIMAP_8,
148         UNIMAP_U,
149         UNIMAP_HENK,
150         UNIMAP_M,
151         UNIMAP_J,
152         UNIMAP_NO,
153     },
154     // A
155     {
156         UNIMAP_NO,
157         UNIMAP_NO,
158         UNIMAP_7,
159         UNIMAP_Y,
160         UNIMAP_NO,
161         UNIMAP_N,
162         UNIMAP_H,
163         UNIMAP_NO,
164     },
165     // B
166     {
167         UNIMAP_NO,
168         UNIMAP_NO,
169         UNIMAP_0,
170         UNIMAP_O,
171         UNIMAP_RALT,
172         UNIMAP_DOT,
173         UNIMAP_L,
174         UNIMAP_NO,
175     },
176     // C
177     {
178         UNIMAP_NO,
179         UNIMAP_NO,
180         UNIMAP_BSPACE,
181         UNIMAP_NO,
182         UNIMAP_RIGHT,
183         UNIMAP_RSHIFT,
184         UNIMAP_ENTER,
185         UNIMAP_NO,
186     },
187     // D
188     {
189         UNIMAP_NO,
190         UNIMAP_NO,
191         UNIMAP_JYEN,
192         UNIMAP_RBRACKET,
193         UNIMAP_DOWN,
194         UNIMAP_UP,
195         UNIMAP_NONUS_HASH,
196         UNIMAP_NO,
197     },
198     // E
199     {
200         UNIMAP_NO,
201         UNIMAP_NO,
202         UNIMAP_MINUS,
203         UNIMAP_P,
204         UNIMAP_RCTRL,
205         UNIMAP_SLASH,
206         UNIMAP_SCOLON,
207         UNIMAP_NO,
208     },
209     // F
210     {
211         UNIMAP_NO,
212         UNIMAP_NO,
213         UNIMAP_EQUAL,
214         UNIMAP_LBRACKET,
215         UNIMAP_LEFT,
216         UNIMAP_RO,
217         UNIMAP_QUOTE,
218         UNIMAP_NO,
219     },
220 };
221
222 #endif