123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #include "ishtob.h"
- #include "action.h"
- #include "action_layer.h"
- #ifdef AUDIO_ENABLE
- #include "audio.h"
- #endif
- __attribute__ ((weak))
- void matrix_init_keymap(void) {}
- __attribute__ ((weak))
- void matrix_scan_keymap(void) {}
- __attribute__ ((weak))
- bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
- return true;
- }
- __attribute__ ((weak))
- bool process_record_secrets(uint16_t keycode, keyrecord_t *record) {
- return true;
- }
- void matrix_init_user(void) {
- matrix_init_keymap();
- }
- void matrix_scan_user(void) {
- matrix_scan_keymap();
- }
- bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case DFU:
- if (record->event.pressed) {
- clear_keyboard();
- reset_keyboard();
- }
- return false;
- break;
- }
- return process_record_keymap(keycode, record) && process_record_secrets(keycode, record);
- }
|