]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/staryu/keymaps/default/keymap.c
3dc480299f1c22baa11f1cff7bd30322bb5e6dfc
[qmk_firmware.git] / keyboards / staryu / keymaps / default / keymap.c
1 /*
2 Copyright 2018 Kenneth Aloysius
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 QMK_KEYBOARD_H
18 #include "action_layer.h"
19
20 enum layers {
21   _LAYER0,
22   _LAYER1,
23   _LAYER2,
24   _LAYER3
25 };
26
27
28 const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
29     /* Keymap 0
30      * ,-----------.
31      * |   |Up |Fn0|
32      * |---+---+---|
33      * |Lef|Dow|Rig|
34      * `-----------'
35      */
36     LAYOUT( KC_UP,  TO(_LAYER1), KC_LEFT,KC_DOWN,KC_RIGHT ),
37     /* Keymap 1
38      * ,-----------.
39      * |   |PgU|Fn1|
40      * |---+---+---|
41      * |Hom|PgD|End|
42      * `-----------'
43      */
44     LAYOUT( KC_PGUP,TO(_LAYER2), KC_HOME,KC_PGDN,KC_END  ),
45     /* Keymap 2
46      * ,-----------.
47      * |   |Sel|Fn2|
48      * |---+---+---|
49      * |Pre|Pla|Nex|
50      * `-----------'
51      */
52     LAYOUT( KC_MSEL,TO(_LAYER3), KC_MPRV,KC_MPLY,KC_MNXT ),
53     /* Keymap 3
54      * ,-----------.
55      * |   |MsU|Fn3|
56      * |---+---+---|
57      * |MsL|MsD|MsR|
58      * `-----------'
59      */
60     LAYOUT( KC_MS_U,TO(_LAYER0), KC_MS_L,KC_MS_D,KC_MS_R ),
61     // /* Keymap 4
62     //  * ,-----------.
63     //  * |   |Fn6|Fn4|
64     //  * |---+---+---|
65     //  * |Fn7|Fn5|Fn8|
66     //  * `-----------'
67     //  */
68     // LAYOUT( FN6, FN4, FN7, FN5, FN8  ),
69 };
70
71 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
72   return MACRO_NONE ;
73 }
74
75 void matrix_init_user(void) {
76 }
77
78 void matrix_scan_user(void) {
79 }
80
81 void led_set_user(uint8_t usb_led) {
82 }