2019-07-30 22:24:11 +00:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
2019-10-15 22:29:33 +00:00
|
|
|
enum tapdance_keycodes {
|
|
|
|
TD_KEY_1,
|
|
|
|
TD_KEY_2,
|
2019-07-30 22:24:11 +00:00
|
|
|
};
|
|
|
|
|
2019-10-15 22:29:33 +00:00
|
|
|
void dance_key_one (qk_tap_dance_state_t *state, void *user_data) {
|
|
|
|
if (state->count == 1) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("¯\\_(ツ)_/¯");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
} else if (state->count == 2) {
|
|
|
|
cycle_unicode_input_mode(+1);
|
|
|
|
reset_tap_dance (state);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void dance_key_two (qk_tap_dance_state_t *state, void *user_data) {
|
|
|
|
if (state->count == 1) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("ಠ_ಠ");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
} else if (state->count == 2) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("(ノಠ痊ಠ)ノ彡┻━┻");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
} else if (state->count == 3) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("╭∩╮(-_-)╭∩╮");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
} else if (state->count == 4) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("(づ ̄ ³ ̄)づ");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
} else if (state->count == 5) {
|
2021-05-13 17:25:40 +00:00
|
|
|
send_unicode_string("(︺︹︺)");
|
|
|
|
tap_code(KC_ENTER);
|
2019-10-15 22:29:33 +00:00
|
|
|
reset_tap_dance (state);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
|
|
|
[TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one),
|
|
|
|
[TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two),
|
2019-07-30 22:24:11 +00:00
|
|
|
};
|
|
|
|
|
2019-10-15 22:29:33 +00:00
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
[0] = LAYOUT(
|
|
|
|
TD(TD_KEY_1),
|
|
|
|
TD(TD_KEY_2)
|
|
|
|
),
|
2019-07-30 22:24:11 +00:00
|
|
|
};
|