aboutsummaryrefslogtreecommitdiff
path: root/keyboards/preonic/keymaps/drasbeck/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/preonic/keymaps/drasbeck/keymap.c')
-rw-r--r--keyboards/preonic/keymaps/drasbeck/keymap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/preonic/keymaps/drasbeck/keymap.c b/keyboards/preonic/keymaps/drasbeck/keymap.c
index d2d30ffa1..909e86a97 100644
--- a/keyboards/preonic/keymaps/drasbeck/keymap.c
+++ b/keyboards/preonic/keymaps/drasbeck/keymap.c
@@ -1,4 +1,4 @@
1/* Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) 2020 Max Drasbeck 1/* Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) 2020 Max Drasbeck
2 * 2 *
3 * You are free to: 3 * You are free to:
4 * 4 *
@@ -44,8 +44,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, 44 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
45 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, 45 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL,
46 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, 46 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
47 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, 47 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
48 BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT 48 BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
49), 49),
50 50
51[_DVORAK] = LAYOUT_preonic_grid( 51[_DVORAK] = LAYOUT_preonic_grid(
@@ -163,7 +163,7 @@ uint16_t muse_counter = 0;
163uint8_t muse_offset = 70; 163uint8_t muse_offset = 70;
164uint16_t muse_tempo = 50; 164uint16_t muse_tempo = 50;
165 165
166void encoder_update_user(uint8_t index, bool clockwise) { 166bool encoder_update_user(uint8_t index, bool clockwise) {
167 if (muse_mode) { 167 if (muse_mode) {
168 if (IS_LAYER_ON(_RAISE)) { 168 if (IS_LAYER_ON(_RAISE)) {
169 if (clockwise) { 169 if (clockwise) {
@@ -187,6 +187,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
187 unregister_code(KC_PGUP); 187 unregister_code(KC_PGUP);
188 } 188 }
189 } 189 }
190 return true;
190} 191}
191 192
192void dip_switch_update_user(uint8_t index, bool active) { 193void dip_switch_update_user(uint8_t index, bool active) {