]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - converter/pc98_usb/unimap_rakuraku.c
ibmpc_usb: Add prebuilt firmware files
[max/tmk_keyboard.git] / converter / pc98_usb / unimap_rakuraku.c
1 /*
2 Copyright 2018 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 #include "unimap_trans.h"
18
19
20 #define AC_FN0 ACTION_LAYER_MOMENTARY(1)
21
22 #ifdef KEYMAP_SECTION_ENABLE
23 const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
24 #else
25 const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
26 #endif
27     /* TODO: test
28     ,---------------------------------------------------------------.
29     |Pau|PrS| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|PgD|PgU|End|Hom|
30     `---------------------------------------------------------------'
31     ,---------------------------------------------------------------.
32     |  Esc |  1|  2|  3|  4|  5| F21|Caps|  6|  7|  8|  9|  0|  BSpc|
33     |---------------------------------------------------------------|
34     |  Tab|  Q|  W|  E|  R|  T|    Up     |  Y|  U|  I|  O|  P|     |
35     |----------------------------------------------------------` Ent|
36     | Ctl|  A|  S|  D|  F|  G|  Left| Right|  H|  J|  K|  L|  ;|    |
37     |---------------------------------------------------------------|
38     |Sft|  Z|  X|  C|  V|  B|Ins|  Down |Del|  N|  M|  ,|  .|  /| ^1|
39     `---------------------------------------------------------------'
40             |Alt| MHEN|  Ctl|  FN0|   Spc   |  FN0| HENK| ^2|
41             `-----------------------------------------------'
42     ^1: Right Shift is identical to Left Shift
43     ^2: Ctrl+HENK(Ctrl+XFER)
44     */
45     UNIMAP_RAKURAKU(
46     PAUS,PSCR,  F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9, F10,PGUP,PGDN, END,HOME,
47      ESC,     1,   2,   3,   4,   5,  LNUM,LCAP,    6,   7,   8,   9,   0,     BSPC,
48      TAB,     Q,   W,   E,   R,   T,     UP,        Y,   U,   I,   O,   P,      ENT,
49     LCTL,    A,   S,   D,   F,   G,  LEFT,  RGHT,    H,   J,   K,   L,SCLN,
50     LSFT,   Z,   X,   C,   V,   B,  INS, DOWN, DEL,   N,   M,COMM, DOT,SLSH,
51               LALT, MHEN, LGUI, FN0,       SPC,     RALT,   HENK
52     ),
53     UNIMAP_RAKURAKU(
54     TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,SLCK,PAUS,
55      GRV,  TRNS,TRNS,TRNS,TRNS,TRNS,  TRNS,TRNS, TRNS,TRNS,TRNS,MINS, EQL,     BSLS,
56     TRNS,  TRNS,TRNS,TRNS,TRNS,TRNS,    PGUP,    TRNS,TRNS,TRNS,LBRC,RBRC,     TRNS,
57     TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,  HOME,   END, TRNS,TRNS,TRNS,TRNS,QUOT,
58     TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, PGDN, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,
59               TRNS, TRNS, TRNS, TRNS,     TRNS,     TRNS,   TRNS
60     ),
61 };