1
0
Fork 0

Minor updates to planck/keymaps/dshields

* tweaks to tap dance keys
* tidy up code
* save a few bytes
This commit is contained in:
Daniel Shields 2017-06-15 08:34:34 +01:00
parent 49cfdb544d
commit cc158d90ae
2 changed files with 15 additions and 25 deletions

View file

@ -37,6 +37,7 @@
#define TD_DOT TD(TDK_DOT)
#define TD_SLSH TD(TDK_SLSH)
// macros
#define ACTION_TAP_DANCE_FN_KEYCODE(user_fn, kc) { \
.fn = { NULL, user_fn, NULL }, \
.user_data = (void *)&((qk_tap_dance_pair_t) { kc, 0 }) \
@ -47,6 +48,7 @@
.user_data = (void *)&((qk_tap_dance_pair_t) { kc1, kc2 }) \
}
#define TAP(keycode) register_code16(keycode); unregister_code16(keycode)
#endif