From 81b0596b0a65df142bab06eb37484cfb83bbf5cc Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 24 May 2024 21:09:00 -0500 Subject: [PATCH] Removing layer taps - Decided I didn't mind having 0 where it is and not having layer taps --- users/t4corun/config/tapping_config.h | 2 -- users/t4corun/features/tapping.c | 11 ----------- users/t4corun/features/tapping.h | 2 -- users/t4corun/rules.mk | 1 - users/t4corun/t4corun.h | 4 ++-- 5 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 users/t4corun/features/tapping.c delete mode 100644 users/t4corun/features/tapping.h diff --git a/users/t4corun/config/tapping_config.h b/users/t4corun/config/tapping_config.h index d3215835..4db8b6b4 100644 --- a/users/t4corun/config/tapping_config.h +++ b/users/t4corun/config/tapping_config.h @@ -13,7 +13,6 @@ #undef TAP_HOLD_CAPS_DELAY #undef TAPPING_TERM -#undef TAPPING_TERM_PER_KEY #undef QUICK_TAP_TERM @@ -27,7 +26,6 @@ #define WAIT_DELAY 5 //custom variable to configure time between taps #define TAPPING_TERM 175 -#define TAPPING_TERM_PER_KEY #define QUICK_TAP_TERM 120 diff --git a/users/t4corun/features/tapping.c b/users/t4corun/features/tapping.c deleted file mode 100644 index 904e011e..00000000 --- a/users/t4corun/features/tapping.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "tapping.h" - -uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case NAV: - return TAPPING_TERM - 40; - - default: - return TAPPING_TERM; - } -} \ No newline at end of file diff --git a/users/t4corun/features/tapping.h b/users/t4corun/features/tapping.h deleted file mode 100644 index 2a576cc3..00000000 --- a/users/t4corun/features/tapping.h +++ /dev/null @@ -1,2 +0,0 @@ -#pragma once -#include "t4corun.h" \ No newline at end of file diff --git a/users/t4corun/rules.mk b/users/t4corun/rules.mk index e4d9e80a..5b249bb4 100644 --- a/users/t4corun/rules.mk +++ b/users/t4corun/rules.mk @@ -41,7 +41,6 @@ MUSIC_MODE = no SRC += \ t4corun.c \ - features/tapping.c \ features/taphold.c \ features/capsword.c \ features/keyoverride.c \ diff --git a/users/t4corun/t4corun.h b/users/t4corun/t4corun.h index 4a568c9c..267ac31c 100644 --- a/users/t4corun/t4corun.h +++ b/users/t4corun/t4corun.h @@ -47,7 +47,7 @@ enum keycodes { #define ___x___ KC_NO // momentary layer -#define NAV LT(_NAVIGATION, KC_0) +#define NAV MO(_NAVIGATION) #define NUM MO(_NUMBER) #define CONFIG MO(_CONFIG) @@ -230,7 +230,7 @@ enum keycodes { #define LAYER_NUMBER \ KC_ESC, KC_BTN3, KC_BTN2, KC_BTN1, TR_GRV, ___x___, KC_7, KC_8, KC_9, KC_COMM, \ - _GACS_MODS________________________, TR_SCLN, ___x___, KC_4, KC_5, KC_6, KC_DOT, \ + _GACS_MODS________________________, TR_SCLN, KC_0, KC_4, KC_5, KC_6, KC_DOT, \ _UCCPR_L___________________________________, ___x___, KC_1, KC_2, KC_3, KC_MINS, \ _LAYER_TRANS_____________, _BASE_R4_________________