2019-06-22 15:36:05 +00:00
|
|
|
#include "omnikeyish.h"
|
|
|
|
|
2024-07-11 12:47:53 +00:00
|
|
|
void keyboard_pre_init_kb(void) {
|
2019-06-22 15:36:05 +00:00
|
|
|
dynamic_macro_init();
|
2024-07-11 12:47:53 +00:00
|
|
|
|
|
|
|
keyboard_pre_init_user();
|
2019-06-22 15:36:05 +00:00
|
|
|
}
|
|
|
|
|
2024-07-11 12:47:53 +00:00
|
|
|
void keyboard_post_init_kb(void) {
|
2019-06-22 15:36:05 +00:00
|
|
|
/* 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. */
|
2022-10-10 19:06:26 +00:00
|
|
|
register_code(KC_NUM_LOCK);
|
|
|
|
unregister_code(KC_NUM_LOCK);
|
2024-07-11 12:47:53 +00:00
|
|
|
|
|
|
|
keyboard_post_init_user();
|
2019-06-22 15:36:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
if (!process_record_dynamic_macro(keycode, record)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|