logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

omnikeyish.c (735B)


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