qmk_firmware/keyboards/omnikeyish/omnikeyish.c
Ryan c6f1b594a2
Remove legacy keycodes, part 2 (#18660)
* `KC_SYSREQ` -> `KC_SYRQ`

And one `KC_ALT_ERASE` -> `KC_ERAS`

* `KC_NONUS_BSLASH` -> `KC_NUBS`

* `KC_NUMLOCK` -> `KC_NUM`

* `KC_CLCK` -> `KC_CAPS`

* `KC_SCROLLLOCK` -> `KC_SCRL`

* `KC_LBRACKET` -> `KC_LBRC`

* `KC_RBRACKET` -> `KC_RBRC`

* `KC_CAPSLOCK` -> `KC_CAPS`
2022-10-10 20:06:26 +01:00

30 lines
680 B
C

#include "omnikeyish.h"
void keyboard_pre_init_user(void) {
dynamic_macro_init();
}
void keyboard_post_init_user(void) {
/* Customise these values to desired behaviour */
//debug_enable = true;
//debug_matrix=true;
//debug_keyboard=true;
//debug_mouse=true;
#ifdef DYNAMIC_MACRO_EEPROM_STORAGE
/* Restore macros from eeprom */
dynamic_macro_load_eeprom_all();
#endif
/* Send numlock keycode to attempt to force numlock back on. */
register_code(KC_NUM_LOCK);
unregister_code(KC_NUM_LOCK);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_record_dynamic_macro(keycode, record)) {
return false;
}
return true;
}