4 // Add reconfigurable functions here, for keymap customization
5 // This allows for a global, userspace functions, and continued
6 // customization of the keymap. Use _keymap instead of _user
7 // functions in the keymaps
9 void matrix_init_keymap(void) {}
11 // Call user matrix init, then call the keymap's init function
12 void matrix_init_user(void) {
17 __attribute__ ((weak))
18 void matrix_scan_keymap(void) {}
20 // No global matrix scan code, so just run keymap's matix
22 void matrix_scan_user(void) {
27 __attribute__ ((weak))
28 bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
32 // Defines actions tor my global custom keycodes. Defined in drashna.h file
33 // Then runs the _keymap's recod handier if not processed here,
34 // And use "NEWPLACEHOLDER" for new safe range
35 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
39 if (!record->event.pressed) {
40 SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
41 #if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
43 #elif defined(BOOTLOADER_HALFKAY)
45 #elif defined(BOOTLOADER_CATERINA)
54 if (record->event.pressed) {
55 SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
60 return process_record_keymap(keycode, record);
64 __attribute__ ((weak))
65 layer_state_t layer_state_set_keymap (layer_state_t state) {
69 layer_state_t layer_state_set_user (layer_state_t state) {
70 return layer_state_set_keymap (state);
75 __attribute__ ((weak))
76 void led_set_keymap(uint8_t usb_led) {}
78 void led_set_user(uint8_t usb_led) {
79 led_set_keymap(usb_led);
84 __attribute__ ((weak))
85 void suspend_power_down_keymap(void) {}
87 void suspend_power_down_user(void)
89 suspend_power_down_keymap();
94 __attribute__ ((weak))
95 void suspend_wakeup_init_keymap(void) {}
97 void suspend_wakeup_init_user(void)
99 suspend_wakeup_init_keymap();
100 #ifdef KEYBOARD_ergodox_ez
107 __attribute__ ((weak))
108 void startup_keymap(void) {}
110 void startup_user (void) {
111 #ifdef RGBLIGHT_ENABLE
113 #endif //RGBLIGHT_ENABLE
119 __attribute__ ((weak))
120 void shutdown_keymap(void) {}
122 void shutdown_user (void) {