You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
678 B

  1. #include "omnikeyish.h"
  2. void keyboard_pre_init_user(void) {
  3. dynamic_macro_init();
  4. }
  5. void keyboard_post_init_user(void) {
  6. /* Customise these values to desired behaviour */
  7. //debug_enable = true;
  8. //debug_matrix=true;
  9. //debug_keyboard=true;
  10. //debug_mouse=true;
  11. #ifdef DYNAMIC_MACRO_EEPROM_STORAGE
  12. /* Restore macros from eeprom */
  13. dynamic_macro_load_eeprom_all();
  14. #endif
  15. /* Send numlock keycode to attempt to force numlock back on. */
  16. register_code(KC_NUMLOCK);
  17. unregister_code(KC_NUMLOCK);
  18. }
  19. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  20. if (!process_record_dynamic_macro(keycode, record)) {
  21. return false;
  22. }
  23. return true;
  24. }