2 Copyright 2016-19 Jun Wako <wakojun@gmail.com>
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.
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.
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/>.
17 #include "unimap_common.h"
20 #define AC_FN0 ACTION_LAYER_TAP_KEY(1, KC_GRV)
21 #define AC_FN1 ACTION_LAYER_TAP_KEY(2, KC_BSLS)
22 #define AC_PKEY ACTION_MODS_TAP_KEY(MOD_NONE, KC_PWR)
24 #ifdef KEYMAP_SECTION_ENABLE
25 const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
27 const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
29 /* ADB Keyboard unified layout
30 * ,---. .---------------. ,---------------. ,---------------. ,-----------. ,---.
31 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |Pwr|
32 * `---' `---------------' `---------------' `---------------' `-----------' `---'
33 * ,-----------------------------------------------------------. ,-----------. ,---------------. ,---.
34 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|PgU| |NmL| =| /| *| |VUp|
35 * |-----------------------------------------------------------| |-----------| |---------------| |---|
36 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| -| |VDn|
37 * |-----------------------------------------------------------| `-----------' |---------------| |---|
38 * |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|# |Retn| | 4| 5| 6| +| |Mut|
39 * |-----------------------------------------------------------| ,---. |---------------| `---'
40 * |Shif|\ | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
41 * |-----------------------------------------------------------| ,-----------. |-----------|Ent| ,---.
42 * |Ctrl |Opt |Gui | Space |Gui* |Opt |Ctrl | |Lef|Dow|Rig| | 0| .| | |Ply|
43 * `-----------------------------------------------------------' `-----------' `---------------' `---'
44 * NOTE: Not-extended ADB keyboards have no discrimination between left and right modifiers.
45 * Use left ones for mapping. Right modifier always sends same code as left one.
46 * Apple Extended Keyboard can discriminate the modifiers except for Command(GUI) key.
49 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, PKEY,
50 FN0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME,PGUP, NLCK,EQL, PSLS,PAST, VOLU,
51 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, FN1, DEL, END, PGDN, P7, P8, P9, PMNS, VOLD,
52 LCAP,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, P4, P5, P6, PPLS, MUTE,
53 LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3, PENT,
54 LCTL,LALT,LGUI, SPC, RALT,RCTL, LEFT,DOWN,RGHT, P0, PDOT, MPLY
58 * ,---. .---------------. ,---------------. ,---------------. ,-----------. ,---.
59 * | `| | | | | | | | | | | | | | | | | | | | | |
60 * `---' `---------------' `---------------' `---------------' `-----------' `---'
61 * ,-----------------------------------------------------------. ,-----------. ,---------------. ,---.
62 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete | | | | | | | | | | | |
63 * |-----------------------------------------------------------| |-----------| |---------------| |---|
64 * | | | | | | | | |PrS|ScL|Pau|Up |INS| | | | | | | | | | | | |
65 * |-----------------------------------------------------------| `-----------' |---------------| |---|
66 * |CapsLo|VoD|VoU|Mut| | | | |Hom|PgU|Lef|Rig|# |Retn| | | | | | | |
67 * |-----------------------------------------------------------| ,---. |---------------| `---'
68 * | | | | | | | | | |End|PgD|Dow|Shift | |PgU| | | | | |
69 * |-----------------------------------------------------------| ,-----------. |-----------| | ,---.
70 * | | | | | | | | |Hom|PgD|End| | | | | | |
71 * `-----------------------------------------------------------' `-----------' `---------------' `---'
74 GRV, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS, TRNS,
75 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
76 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS,UP, INS, TRNS, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
77 TRNS,VOLD,VOLU,MUTE,TRNS,TRNS,TRNS,TRNS,HOME,PGUP,LEFT,RGHT, TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
78 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,END, PGDN,DOWN, TRNS, PGUP, TRNS,TRNS,TRNS,TRNS,
79 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS, HOME,PGDN,END, TRNS, TRNS, TRNS
83 * ,---. .---------------. ,---------------. ,---------------. ,-----------. ,---.
84 * | `| | | | | | | | | | | | | | | | | | | | | |
85 * `---' `---------------' `---------------' `---------------' `-----------' `---'
86 * ,-----------------------------------------------------------. ,-----------. ,---------------. ,---.
87 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete | | | | | | | | | | | |
88 * |-----------------------------------------------------------| |-----------| |---------------| |---|
89 * | | | | | | | | |PrS|ScL|Pau|Up |INS| | | | | | | | | | | | |
90 * |-----------------------------------------------------------| `-----------' |---------------| |---|
91 * |CapsLo|VoD|VoU|Mut| | | | |Hom|PgU|Lef|Rig|# |Retn| | | | | | | |
92 * |-----------------------------------------------------------| ,---. |---------------| `---'
93 * | | | | | | | | | |End|PgD|Dow|Shift | |PgU| | | | | |
94 * |-----------------------------------------------------------| ,-----------. |-----------| | ,---.
95 * | | | | | | | | |Hom|PgD|End| | | | | | |
96 * `-----------------------------------------------------------' `-----------' `---------------' `---'
99 GRV, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS, TRNS,
100 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
101 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS,UP, INS, TRNS, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
102 TRNS,VOLD,VOLU,MUTE,TRNS,TRNS,TRNS,TRNS,HOME,PGUP,LEFT,RGHT, TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
103 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,END, PGDN,DOWN, TRNS, PGUP, TRNS,TRNS,TRNS,TRNS,
104 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS, HOME,PGDN,END, TRNS, TRNS, TRNS