1 #include "process_records.h"
2 #include "custom_keycodes.h"
3 #include "timer_utils.h"
5 #ifdef TRILAYER_ENABLED
6 uint32_t layer_state_set_user(uint32_t state)
8 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
12 bool process_record_user(uint16_t keycode, keyrecord_t *record)
14 static uint16_t reset_timer;
16 #ifndef TAP_DANCE_ENABLE
17 if (!process_tap_dance_double(keycode, record))
25 #if defined(RGBLIGHT_ENABLE)
26 if (record->event.pressed)
28 eeconfig_update_rgblight_default();
31 #elif defined(RGB_MATRIX_ENABLE)
32 if (record->event.pressed)
33 eeconfig_update_rgb_matrix_default();
39 if (record->event.pressed)
40 reset_timer = timer_read() + 500;
41 else if (timer_expired(reset_timer))
47 return process_record_keymap(keycode, record);
50 __attribute__ ((weak))
51 bool process_record_keymap(uint16_t keycode, keyrecord_t *record)