From ad7a5bdc4f2527f47ca22885e5d0b689fb8d4518 Mon Sep 17 00:00:00 2001 From: Daniel Shields Date: Fri, 2 Jun 2017 11:10:22 +0100 Subject: Additional tap dance keys/functions for planck/keymap/dshields --- keyboards/planck/keymaps/dshields/config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'keyboards/planck/keymaps/dshields/config.h') diff --git a/keyboards/planck/keymaps/dshields/config.h b/keyboards/planck/keymaps/dshields/config.h index 8fa078cd9..5f2810287 100644 --- a/keyboards/planck/keymaps/dshields/config.h +++ b/keyboards/planck/keymaps/dshields/config.h @@ -16,17 +16,37 @@ #define MOUSEKEY_MAX_SPEED 7 #define MOUSEKEY_WHEEL_DELAY 0 +// dynamic macro keys #define DM_PLAY DYN_MACRO_PLAY1 #define DM_STRT DYN_REC_START1 #define DM_STOP DYN_REC_STOP +// one-shot layer keys #define OSL_RSE OSL(RSE) #define OSL_LWR OSL(LWR) #define OSL_FUN OSL(FUN) +// one-shot modifier keys #define OSM_CTL OSM(MOD_LCTL) #define OSM_ALT OSM(MOD_LALT) #define OSM_SFT OSM(MOD_LSFT) +// tap dance keys +#define TD_SCLN TD(TDK_SCLN) +#define TD_COMM TD(TDK_COMM) +#define TD_DOT TD(TDK_DOT) +#define TD_SLSH TD(TDK_SLSH) + +#define ACTION_TAP_DANCE_FN_KEYCODE(user_fn, kc) { \ + .fn = { NULL, user_fn, NULL }, \ + .user_data = (void *)&((qk_tap_dance_pair_t) { kc, 0 }) \ +} + +#define ACTION_TAP_DANCE_FN_KEYCODE2(user_fn, kc1, kc2) { \ + .fn = { NULL, user_fn, NULL }, \ + .user_data = (void *)&((qk_tap_dance_pair_t) { kc1, kc2 }) \ +} + + #endif -- cgit v1.2.3-24-g4f1b