#include"rs.h"// process_record_user is like process_record_user for keymaps including this file.
__attribute__((weak))boolprocess_record_keymap(uint16_tkeycode, keyrecord_t *record){returntrue;}// rgb_mod_changed_keymap is called any time the RGB mod has been changed.
__attribute__((weak))voidrgb_mod_changed_keymap(void){}// keylog_set_keymap is called for every key press.
__attribute__((weak))voidkeylog_set_keymap(uint16_tkeycode, keyrecord_t *record){}boolprocess_record_user(uint16_tkeycode, keyrecord_t *record){if(record->event.pressed){keylog_set_keymap(keycode, record);}switch(keycode){case NEQL:// !=
if(record->event.pressed){SEND_STRING("!=");}returnfalse;case LPLT:// ( or < with shift
if(record->event.pressed){if(get_mods()&(MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT))){// <
tap_code(KC_COMM);// shift is already registered
}else{// (
register_mods(MOD_BIT(KC_LSFT));tap_code(KC_9);unregister_mods(MOD_BIT(KC_LSFT));}}returnfalse;case RPGT:// ) or > with shift
if(record->event.pressed){if(get_mods()&(MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT))){// <
tap_code(KC_DOT);// shift is already registered
}else{// )
register_mods(MOD_BIT(KC_LSFT));tap_code(KC_0);unregister_mods(MOD_BIT(KC_LSFT));}}returnfalse;#ifdef RGBLIGHT_ENABLE
case RGB_MOD:if(record->event.pressed){rgblight_step();rgb_mod_changed_keymap();}returnfalse;case RGBRST:if(record->event.pressed){eeconfig_update_rgblight_default();rgblight_enable();rgb_mod_changed_keymap();}returnfalse;#endif}returnprocess_record_keymap(keycode, record);}