#include "process_records.h"
#include "custom_keycodes.h"
#ifdef RGB_ENABLE
#include "custom_rgb.h"
#endif
#ifdef TRILAYER_ENABLED
uint32_t layer_state_set_user(uint32_t state)
{
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record)
static uint16_t reset_timer;
#ifndef TAP_DANCE_ENABLE
if (!process_custom_tap_dance(keycode, record))
return false;
switch (keycode)
case RGBRST:
if (record->event.pressed)
rgb_reset();
case RESET:
reset_timer = timer_read() + 500;
else if (timer_expired(timer_read(), reset_timer))
reset_keyboard();
#ifdef RGB_MATRIX_TOG_LAYERS
case RGB_TOG:
if (record->event.pressed) {
rgb_matrix_increase_flags();
return process_record_encoder(keycode, record) && process_record_keymap(keycode, record);
__attribute__ ((weak))
bool process_record_keymap(uint16_t keycode, keyrecord_t *record)
return true;
bool process_record_encoder(uint16_t keycode, keyrecord_t *record)