aboutsummaryrefslogtreecommitdiff
path: root/keyboards/space_space/keymaps/big_space/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/space_space/keymaps/big_space/keymap.c')
-rw-r--r--keyboards/space_space/keymaps/big_space/keymap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/space_space/keymaps/big_space/keymap.c b/keyboards/space_space/keymaps/big_space/keymap.c
index 9aeeb2ef4..f99925971 100644
--- a/keyboards/space_space/keymaps/big_space/keymap.c
+++ b/keyboards/space_space/keymaps/big_space/keymap.c
@@ -13,7 +13,7 @@
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include QMK_KEYBOARD_H 17#include QMK_KEYBOARD_H
18 18
19enum layers{ 19enum layers{
@@ -52,18 +52,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
52 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, 52 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
53 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS, 53 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
54 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS, 54 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
55 KC_TRNS, KC_TRNS, KC_TRNS 55 KC_TRNS, KC_TRNS, KC_TRNS
56 ), 56 ),
57 57
58 [_NAV] = LAYOUT_big_space( 58 [_NAV] = LAYOUT_big_space(
59 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, 59 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
60 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB, 60 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
61 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT, 61 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
62 KC_TRNS, KC_TRNS, KC_TRNS 62 KC_TRNS, KC_TRNS, KC_TRNS
63 ), 63 ),
64}; 64};
65 65
66void encoder_update_user(uint8_t index, bool clockwise) { 66bool encoder_update_user(uint8_t index, bool clockwise) {
67 if (index == 1) { /* left encoder*/ 67 if (index == 1) { /* left encoder*/
68 switch(get_highest_layer(layer_state)){ 68 switch(get_highest_layer(layer_state)){
69 69
@@ -94,7 +94,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
94 } 94 }
95 } else if (index == 0) { /* right encoder */ 95 } else if (index == 0) { /* right encoder */
96 switch(get_highest_layer(layer_state)){ 96 switch(get_highest_layer(layer_state)){
97 97
98 case _SYM: 98 case _SYM:
99 if (clockwise) { 99 if (clockwise) {
100 tap_code(KC_MPRV); 100 tap_code(KC_MPRV);
@@ -112,6 +112,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
112 break; 112 break;
113 } 113 }
114 } 114 }
115 return true;
115} 116}
116 117
117#ifdef COMBO_ENABLE 118#ifdef COMBO_ENABLE