diff options
author | stanrc85 <47038504+stanrc85@users.noreply.github.com> | 2019-03-19 22:45:33 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-19 19:45:33 -0700 |
commit | 6e7eff47b374fe4fdb550c5554b6438ec626a5f7 (patch) | |
tree | 98d2709b44882832d8de6534fcbc068a0f97e2d0 /users/stanrc85 | |
parent | 4b4eba997fd70cf6faf263384f8559c90f6d8529 (diff) |
[Keymap] Keymap and readme updates (#5449)
* Remove tap dance code from keymap.c
* Add tap dance code to userspace files
* Readme updates
* Update keymap images
Diffstat (limited to 'users/stanrc85')
-rw-r--r-- | users/stanrc85/stanrc85.c | 5 | ||||
-rw-r--r-- | users/stanrc85/stanrc85.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c index bddc14d7e2..e8fc5c1dfd 100644 --- a/users/stanrc85/stanrc85.c +++ b/users/stanrc85/stanrc85.c @@ -5,6 +5,11 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; } +qk_tap_dance_action_t tap_dance_actions[] = { + [TD_WIN] = ACTION_TAP_DANCE_DOUBLE(KC_CAD, KC_LOCK), + [TD_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRV) +}; + bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case KC_MAKE: diff --git a/users/stanrc85/stanrc85.h b/users/stanrc85/stanrc85.h index 1d9602a05e..c0a0e87662 100644 --- a/users/stanrc85/stanrc85.h +++ b/users/stanrc85/stanrc85.h @@ -13,6 +13,12 @@ enum custom_keycodes { NEW_SAFE_RANGE //use "NEW_SAFE_RANGE" for keymap specific codes }; +//Tap Dance Declarations +enum { + TD_WIN = 0, + TD_ESC +}; + //Aliases for longer keycodes #define KC_CAD LALT(LCTL(KC_DEL)) #define KC_LOCK LGUI(KC_L) |