diff options
author | Danny <nooges@users.noreply.github.com> | 2020-01-28 17:13:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 14:13:57 -0800 |
commit | 2abc0e17e7142f058b39998e16d0896286bd8e1f (patch) | |
tree | 74532e5b606f5e62defcc9d9732e804627c6759a /keyboards/keebio/quefrency/keymaps/default65 | |
parent | 197a401be6585b0b9aad3ca02ec1829e894e9a62 (diff) |
[Keyboard] Add Quefrency Rev 2 (#8001)
* Add Quefrency Rev. 2
* Add encoder support
* Add RGB LED mapping info
* Add diode direction
* Revert removal of default folder for CI purposes
* Remove unneeded lines
* Rename ISO layout macros
Diffstat (limited to 'keyboards/keebio/quefrency/keymaps/default65')
-rw-r--r-- | keyboards/keebio/quefrency/keymaps/default65/keymap.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/keebio/quefrency/keymaps/default65/keymap.c b/keyboards/keebio/quefrency/keymaps/default65/keymap.c index 3e77731671..4ac622f8ed 100644 --- a/keyboards/keebio/quefrency/keymaps/default65/keymap.c +++ b/keyboards/keebio/quefrency/keymaps/default65/keymap.c @@ -30,3 +30,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TILD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ) }; + +void encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_PGDN); + } else { + tap_code(KC_PGUP); + } + } + else if (index == 1) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } +} |