/* Copyright 2016-19 Jun Wako This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include "unimap_common.h" #define AC_FN0 ACTION_MODS_KEY(MOD_LSFT, KC_8) #define AC_FN1 ACTION_MODS_KEY(MOD_LSFT, KC_EQL) #define AC_FN2 ACTION_LAYER_TAP_KEY(1, KC_GRV) #define AC_PKEY ACTION_MODS_TAP_KEY(MOD_NONE, KC_PWR) #ifdef KEYMAP_SECTION_ENABLE const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = { #else const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { #endif /* Layer 0 - ADB M0487 Apple Classic II (IIgs) Keyboard unified layout * ,---. .---------------. ,---------------. ,---------------. ,-----------. ,---. * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |Pwr| * `---' `---------------' `---------------' `---------------' `-----------' `---' * ,-----------------------------------------------------------. ,-----------. ,---------------. ,---. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY| BS| |Ins|Hom|PgU| |NmL| =| /| *| |VUp| * |-----------------------------------------------------------| |-----------| |---------------| |---| * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| -| |VDn| * |-----------------------------------------------------------| `-----------' |---------------| |---| * |CapsLo| A| S| D| F| G| H| J| K| L| ;| '| #| Ret| | 4| 5| 6| +| |Mut| * |-----------------------------------------------------------| ,---. |---------------| `---' * |Shif| <| Z| X| C| V| B| N| M| ,| ,| /| RO| Shift| |Up | | 1| 2| 3| | * |-----------------------------------------------------------| ,-----------. |-----------|Ent| ,---. * |Ctrl |Opt |Gui |MHN| Space |HNK|KAN|Gui* |Opt |Ctrl | |Lef|Dow|Rig| | 0| ,| .| | |Ply| * `-----------------------------------------------------------' `-----------' `---------------' `---' */ [0] = UNIMAP_ADB( ESC, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,NO, PKEY, FN2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NO, BSPC, NO, NO,NO, CLEAR,EQL, SLSH,FN0, NO, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, NO, NO,NO, 7, 8, 9, MINS, NO, CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NO, ENT, 4, 5, 6, FN1, NO, LSFT,NO, Z, X, C, V, B, N, M, COMM,DOT, SLSH, NO, RSFT, UP, 1, 2, 3, ENT, LCTL,LALT,LGUI,NO, SPC, NO,NO, GRV, UP, LEFT,DOWN,RGHT, 0, NO, DOT, NO ), /* * ,---. .---------------. ,---------------. ,---------------. ,-----------. ,---. * | `| | | | | | | | | | | | | | | | | | | | | | * `---' `---------------' `---------------' `---------------' `-----------' `---' * ,-----------------------------------------------------------. ,-----------. ,---------------. ,---. * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Ins|Del| | | | | | | | | | | | * |-----------------------------------------------------------| |-----------| |---------------| |---| * | | | | | | | | |PrS|ScL|Pau|Up |INS| | | | | | | | | | | | | * |-----------------------------------------------------------| `-----------' |---------------| |---| * |CapsLo|VoD|VoU|Mut| | | | |Hom|PgU|Lef|Rig|# |Retn| | | | | | | | * |-----------------------------------------------------------| ,---. |---------------| `---' * | | | | | | | | | |End|PgD|Dow| RO| Shift| |PgU| | | | | | * |-----------------------------------------------------------| ,-----------. |-----------| | ,---. * | | | | | | | | | | |Hom|PgD|End| | | | | | | | * `-----------------------------------------------------------' `-----------' `---------------' `---' */ /* Layer 1 - ADB M0487 Apple Classic II (IIgs) Keyboard unified layout After GRV/Tilde key held down: NUMBER ROW Num 1 becomes F1 through EQL becomes F12 BACKSPACE becomes DELETE LEFT becomes HOME RIGHT becomes END UP becomes PGUP DOWN becomes PGDN 8 becomes UP 4 becomes LEFT 6 becomes RGHT 2 becomes DOWN Numeric Keypad 7,9,5,1,3,0,dot become non-active */ [1] = UNIMAP_ADB( ESC, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, PKEY, GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, NO, DEL, NO, NO, NO, CLEAR, EQL,SLSH,FN0, NO, TAB, Q, W, E, R, T, Y, U, I, O, P ,LBRC, RBRC, BSLS, NO, NO, NO, NO, UP, NO, MINS, NO, CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NO, ENT, LEFT, NO, RGHT, FN1, NO, LSFT, NO,Z, X, C, V, B, N, M, COMM, DOT,SLSH, NO,RSFT, PGUP, NO, DOWN, NO, ENT, LCTL,LALT,LGUI, NO, SPC, NO, NO, GRV, UP, HOME,PGDN,END, NO,NO,NO, NO ), };