From 6de4870ee0dbd14eb592195334eb70423ae88136 Mon Sep 17 00:00:00 2001 From: Daniel Shields <1530706+shieldsd@users.noreply.github.com> Date: Sun, 20 Nov 2022 08:27:45 +0000 Subject: [Keyboard] Add layer tap keys to dshields keymaps. (#18953) --- users/dshields/config.h | 4 ++++ users/dshields/dshields.h | 23 ++++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) (limited to 'users/dshields') diff --git a/users/dshields/config.h b/users/dshields/config.h index 21a5c3500d..1420a9178f 100644 --- a/users/dshields/config.h +++ b/users/dshields/config.h @@ -13,9 +13,13 @@ #define MOUSEKEY_INTERVAL 20 #define MOUSEKEY_DELAY 0 +#ifndef MOUSEKEY_TIME_TO_MAX #define MOUSEKEY_TIME_TO_MAX 40 +#endif #define MOUSEKEY_MAX_SPEED 7 +#ifndef MOUSEKEY_WHEEL_DELAY #define MOUSEKEY_WHEEL_DELAY 0 +#endif #undef ENABLE_RGB_MATRIX_ALPHAS_MODS #undef ENABLE_RGB_MATRIX_BREATHING diff --git a/users/dshields/dshields.h b/users/dshields/dshields.h index 34544b0260..9ed0310645 100644 --- a/users/dshields/dshields.h +++ b/users/dshields/dshields.h @@ -26,22 +26,35 @@ #define MT_L RALT_T(KC_L) #define MT_SCLN RGUI_T(KC_SCLN) +// layer-tap keys +#if defined KEYBOARD_planck_light \ + || defined KEYBOARD_planck_rev3 \ + || defined KEYBOARD_planck_rev6 \ + || defined KEYBOARD_keyboardio_atreus + #define LT_G LT(LWR, KC_G) + #define LT_H LT(RSE, KC_H) +#elif defined KEYBOARD_keyboardio_model01 + #define LT_G LT(FUN, KC_G) + #define LT_H LT(FUN, KC_H) +#else + #define LT_G KC_G + #define LT_H KC_H +#endif + // LED/RGB controls -#ifdef KEYBOARD_planck_light +#if defined KEYBOARD_planck_light #define LGT_TOG RGB_TOG #define LGT_MOD RGB_MOD #define LGT_BRT _______ #define LGT_INC RGB_HUI #define LGT_DEC RGB_HUD -#endif -#ifdef KEYBOARD_planck_rev3 +#elif defined KEYBOARD_planck_rev3 #define LGT_TOG BL_TOGG #define LGT_MOD BL_STEP #define LGT_BRT BL_BRTG #define LGT_INC BL_INC #define LGT_DEC BL_DEC -#endif -#ifdef KEYBOARD_planck_rev6 +#else #define LGT_TOG _______ #define LGT_MOD _______ #define LGT_BRT _______ -- cgit v1.2.3