1 #include "replicaJunction.h"
4 #ifdef TAP_DANCE_ENABLE
5 void dance_layer(qk_tap_dance_state_t *state, void *user_data)
7 uint8_t layer = biton32(layer_state);
11 // 5 or more taps resets the keyboard
15 else if (state->count == 3)
17 // Triple tap changes to QWERTY layer
18 if (layer == L_QWERTY)
29 else if (state->count == 2)
31 // Double tap toggles Number layer
44 // Single tap sends Escape, and also turns off layers
45 // That's mostly in case I get stuck and forget where I am
58 register_code(KC_ESC);
59 unregister_code(KC_ESC);
63 // Tap Dance Definitions
64 // Note - this needs to come AFTER the function is declared
65 qk_tap_dance_action_t tap_dance_actions[] = {
66 [TD_LAYER_TOGGLE] = ACTION_TAP_DANCE_FN(dance_layer)
69 #endif // TAP_DANCE_ENABLE
71 // These functions can be overridden in individual keymap files.
72 // This allows a user function to be shared for all my keyboards, while each
73 // keyboard can also have a keyboard-specific section.
75 // Note that keymaps don't need to override these if there's nothing to
76 // override them with.
77 __attribute__ ((weak))
78 void matrix_init_keymap(void) {}
80 __attribute__ ((weak))
81 void matrix_scan_keymap(void) {}
83 __attribute__ ((weak))
84 bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
88 // Runs just one time when the keyboard initializes.
89 void matrix_init_user(void) {
90 #ifdef UNICODEMAP_ENABLE
91 // Set Unicode input to use WinCompose
92 // https://github.com/samhocevar/wincompose
93 set_unicode_input_mode(UC_WINC);
94 #endif // UNICODEMAP_ENABLE
99 // Runs constantly in the background, in a loop.
100 void matrix_scan_user(void) {
101 matrix_scan_keymap();
104 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
105 if (record->event.pressed)
110 case RJ_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
111 SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
112 #if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
114 #elif defined(BOOTLOADER_HALFKAY)
116 #elif defined(BOOTLOADER_CATERINA)
118 #endif // bootloader options
123 SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
144 SEND_STRING("select *");
148 return process_record_keymap(keycode, record);