diff options
author | Nick Brassel <[email protected]> | 2023-11-28 16:39:48 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2023-11-28 16:40:47 +1100 |
commit | 0115951de12bd4c798a43a380651c34552552e85 (patch) | |
tree | 62999011ae782d93aa6dc9c889615db2a840cafc /users/drashna/keyrecords/tapping.c | |
parent | 0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff) | |
parent | 4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff) | |
download | qmk_firmware-0.23.0.tar.gz qmk_firmware-0.23.0.zip |
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/drashna/keyrecords/tapping.c')
-rw-r--r-- | users/drashna/keyrecords/tapping.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/users/drashna/keyrecords/tapping.c b/users/drashna/keyrecords/tapping.c deleted file mode 100644 index d4a0e16112..0000000000 --- a/users/drashna/keyrecords/tapping.c +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2021 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]> -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "drashna.h" - -#ifdef TAPPING_TERM_PER_KEY -__attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { - - switch (keycode) { - case BK_LWER: - return TAPPING_TERM + 25; - case QK_MOD_TAP ... QK_MOD_TAP_MAX: - if (QK_MOD_TAP_GET_MODS(keycode) & MOD_LGUI) { - return 300; - } - default: - return TAPPING_TERM; - } -} -#endif // TAPPING_TERM_PER_KEY - -#ifdef PERMISSIVE_HOLD_PER_KEY -__attribute__((weak)) bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { - // Immediately select the hold action when another key is tapped: - // return true; - // Do not select the hold action when another key is tapped. - // return false; - switch (keycode) { - default: - return false; - } -} -#endif // PERMISSIVE_HOLD_PER_KEY - -#ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY -__attribute__((weak)) bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { - // Immediately select the hold action when another key is pressed. - // return true; - // Do not select the hold action when another key is pressed. - // return false; - switch (keycode) { -// case QK_LAYER_TAP ... QK_LAYER_TAP_MAX: -// return true; - default: - return false; - } -} -#endif // HOLD_ON_OTHER_KEY_PRESS_PER_KEY - -#ifdef QUICK_TAP_TERM_PER_KEY -__attribute__((weak)) uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - default: - return QUICK_TAP_TERM; - } -} -#endif // QUICK_TAP_TERM_PER_KEY - -#ifdef RETRO_TAPPING_PER_KEY -__attribute__((weak)) bool get_retro_tapping(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - default: - return false; - } -} -#endif // RETRO_TAPPING_PER_KEY |