Skip to content

Instantly share code, notes, and snippets.

@trd86
trd86 / mouse-tap-sample.c
Last active February 19, 2025 03:42
Tap Dance and Mouse Key. You can define the hold to be CMD or layer.
#define ACTION_TAP_DANCE_MOUSE_LAYER(kc1, layer) \
{ .fn = {mousekey_tap, mousekey_finished, mousekey_reset}, .user_data = (void *)&((qk_tap_dance_pair_t){kc1, layer}), }
// Tap Dance declarations
enum {
TD_MB_CMD,
TD_MB_L1,
TD_RMB_L2
};