qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

omnikeyish.c (735B)


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