diff options
author | Max Rumpf <max.rumpf1998@gmail.com> | 2020-01-28 18:08:39 +0100 |
---|---|---|
committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-01-28 09:08:39 -0800 |
commit | 0d80c7bd598c1296d31554fe8c82843415696a18 (patch) | |
tree | e28cefaac4b2cde21e60724e2ca48960568f9689 /keyboards/maxr1998/pulse4k/keymaps | |
parent | 4d06d2835c87f3eed694493fb749527032a78ec2 (diff) |
[Keyboard] Fix Pulse4k info.json LAYOUT name (#7965)
* Fix Pulse4k info.json LAYOUT name
* Add missing functions to fix configurator
Add empty encoder functions to the keyboard code, as the configurator doesn't see the keymap defined functions at first.
To be able to override these functions, they are marked as 'weak'.
* Rework encoder functions another time
Default implementation is now provided as part of the keyboard, but they can still be overriden within the keymap (template is commented out by default)
Diffstat (limited to 'keyboards/maxr1998/pulse4k/keymaps')
-rw-r--r-- | keyboards/maxr1998/pulse4k/keymaps/default/keymap.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c b/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c index 873c87d1f9..67331235ba 100644 --- a/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c +++ b/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c @@ -31,18 +31,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { void matrix_init_user(void) { } +// Override if necessary +/* void encoder_one_update(bool clockwise) { - if (clockwise) { - tap_code(KC_PGDN); - } else { - tap_code(KC_PGUP); - } } void encoder_two_update(bool clockwise) { - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } } +//*/ |