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 __attribute__ ((weak))
23 void matrix_scan_user(void) {
28 __attribute__ ((weak))
29 bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
33 // Defines actions tor my global custom keycodes. Defined in drashna.h file
34 // Then runs the _keymap's recod handier if not processed here,
35 // And use "NEWPLACEHOLDER" for new safe range
36 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
40 if (!record->event.pressed) {
41 SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
42 #if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
44 #elif defined(BOOTLOADER_HALFKAY)
46 #elif defined(BOOTLOADER_CATERINA)
55 if (record->event.pressed) {
56 SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
61 return process_record_keymap(keycode, record);
65 __attribute__ ((weak))
66 uint32_t layer_state_set_keymap (uint32_t state) {
70 uint32_t layer_state_set_user (uint32_t state) {
71 return layer_state_set_keymap (state);
76 __attribute__ ((weak))
77 void led_set_keymap(uint8_t usb_led) {}
79 void led_set_user(uint8_t usb_led) {
80 led_set_keymap(usb_led);
85 __attribute__ ((weak))
86 void suspend_power_down_keymap(void) {}
88 void suspend_power_down_user(void)
90 suspend_power_down_keymap();
95 __attribute__ ((weak))
96 void suspend_wakeup_init_keymap(void) {}
98 void suspend_wakeup_init_user(void)
100 suspend_wakeup_init_keymap();
101 #ifdef KEYBOARD_ergodox_ez
108 __attribute__ ((weak))
109 void startup_keymap(void) {}
111 void startup_user (void) {
112 #ifdef RGBLIGHT_ENABLE
114 #endif //RGBLIGHT_ENABLE
120 __attribute__ ((weak))
121 void shutdown_keymap(void) {}
123 void shutdown_user (void) {