diff options
author | Joel Challis <git@zvecr.com> | 2023-11-26 18:36:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 05:36:45 +1100 |
commit | 1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch) | |
tree | b97c1f983b7e4b57c007d0feedadd3ad3e39062b /keyboards/z12/keymaps/zigotica/encoder.c | |
parent | 4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff) |
Remove userspace keymaps (#22544)
Diffstat (limited to 'keyboards/z12/keymaps/zigotica/encoder.c')
-rw-r--r-- | keyboards/z12/keymaps/zigotica/encoder.c | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/keyboards/z12/keymaps/zigotica/encoder.c b/keyboards/z12/keymaps/zigotica/encoder.c deleted file mode 100644 index f55b9b5ae9..0000000000 --- a/keyboards/z12/keymaps/zigotica/encoder.c +++ /dev/null @@ -1,110 +0,0 @@ -/* Copyright 2020 Sergi Meseguer <zigotica@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include "zigotica.h" - -bool encoder_update_user(uint8_t index, bool clockwise) { - switch(get_highest_layer(layer_state)){ - case _VIM: - if (index == 0) { // LEFT - // Cycle through buffers - if (clockwise) { - register_code(KC_ESC); - SEND_STRING(":bprevious"); - register_code(KC_ENT); - unregister_code(KC_ESC); - unregister_code(KC_ENT); - } else { - register_code(KC_ESC); - SEND_STRING(":bnext"); - register_code(KC_ENT); - unregister_code(KC_ESC); - unregister_code(KC_ENT); - } - } else { // RIGHT - // Scroll - if (clockwise) { - tap_code(KC_PGDN); - } else { - tap_code(KC_PGUP); - } - } - break; - case _BROWSER: - if (index == 0) { // LEFT - // Cycle through Tabs - if (clockwise) { - tap_code16(C(KC_TAB)); - } else { - tap_code16(S(C(KC_TAB))); - } - } else { // RIGHT - // Scroll up/down - if (clockwise) { - register_code(KC_WH_U); - unregister_code(KC_WH_U); - } else { - register_code(KC_WH_D); - unregister_code(KC_WH_D); - } - } - break; - case _FIGMA: - if (index == 0) { // LEFT - // Cycle through Tabs - if (clockwise) { - tap_code16(C(KC_TAB)); - } else { - tap_code16(S(C(KC_TAB))); - } - } else { // RIGHT - // Zoom in/out - if (clockwise) { - register_code(KC_LGUI); - register_code(KC_WH_D); - unregister_code(KC_WH_D); - unregister_code(KC_LGUI); - } else { - register_code(KC_LGUI); - register_code(KC_WH_U); - unregister_code(KC_WH_U); - unregister_code(KC_LGUI); - } - } - break; - case _BASE: - default: - if (index == 0) { // LEFT - // Volume control. - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } else { // RIGHT - // Scroll - if (clockwise) { - tap_code(KC_PGDN); - } else { - tap_code(KC_PGUP); - } - } - break; - } - return false; -} - - |