summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps/default
diff options
context:
space:
mode:
authormgalisa <matt.galisa@gmail.com>2019-06-11 18:02:33 -0500
committerDrashna Jaelre <drashna@live.com>2019-06-11 16:02:33 -0700
commit29824f3cf7cb09337a4c579ea108418e4de99b8b (patch)
tree2f7b70b22cd4556fff6f8a45a938fed530370ad6 /keyboards/planck/keymaps/default
parent5343eaf89a1fb4e4f5a88ace3dee9cfa1354deeb (diff)
[Keymap] New planck keymap (#6093)
* New keymap * Add readme; fix lack of asterisk on raise * Update default planck map to tap_code vs reg/unreg * Press F to pay respects
Diffstat (limited to 'keyboards/planck/keymaps/default')
-rw-r--r--keyboards/planck/keymaps/default/keymap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index 03cc0049e4..cc090200b7 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/keymap.c
@@ -274,19 +274,15 @@ void encoder_update(bool clockwise) {
} else {
if (clockwise) {
#ifdef MOUSEKEY_ENABLE
- register_code(KC_MS_WH_DOWN);
- unregister_code(KC_MS_WH_DOWN);
+ tap_code(KC_MS_WH_DOWN);
#else
- register_code(KC_PGDN);
- unregister_code(KC_PGDN);
+ tap_code(KC_PGDN);
#endif
} else {
#ifdef MOUSEKEY_ENABLE
- register_code(KC_MS_WH_UP);
- unregister_code(KC_MS_WH_UP);
+ tap_code(KC_MS_WH_UP);
#else
- register_code(KC_PGUP);
- unregister_code(KC_PGUP);
+ tap_code(KC_PGUP);
#endif
}
}