diff options
author | hvp <32483282+hvpkod@users.noreply.github.com> | 2021-09-02 05:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 20:44:36 -0700 |
commit | cb53c4fd41885ba60192cbd0b5fd23d6a687ab17 (patch) | |
tree | d6d8fccf50b2fdbd28b320b0f693214bb46ebfb2 /users/hvp/per_key.c | |
parent | 872414f454435321b073ba747205b5f16ce0c53a (diff) |
[Keymap] hvp keymap for Cornelius, updated ut47.2 and userspace (#14187)
Diffstat (limited to 'users/hvp/per_key.c')
-rw-r--r-- | users/hvp/per_key.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/users/hvp/per_key.c b/users/hvp/per_key.c new file mode 100644 index 0000000000..571fdcc915 --- /dev/null +++ b/users/hvp/per_key.c @@ -0,0 +1,43 @@ + /* Copyright 2021 hvp + * + * 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 per_key.h + +uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case MT(MOD_LGUI, KC_A): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_LALT, KC_S): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_LSFT, KC_D): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_LCTL, KC_F): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_RCTL, KC_H): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_RSFT, KC_J): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_RALT, KC_K): + return TAPPING_TERM + LONG_TAPPING_TERM; + case MT(MOD_RGUI, KC_L): + return TAPPING_TERM + LONG_TAPPING_TERM; + case KC_LCPO: + return TAPPING_TERM 75; + default: + return TAPPING_TERM; + } +}
\ No newline at end of file |