diff options
Diffstat (limited to 'users/pcoves/pcoves.c')
| -rw-r--r-- | users/pcoves/pcoves.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/users/pcoves/pcoves.c b/users/pcoves/pcoves.c new file mode 100644 index 000000000..af5b987a6 --- /dev/null +++ b/users/pcoves/pcoves.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | #include "pcoves.h" | ||
| 2 | |||
| 3 | #ifdef RAINBOW_UNICORN_ENABLE | ||
| 4 | #include "rainbowUnicorn.h" | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #ifdef UNICODE_ENABLE | ||
| 8 | #include "unicode.h" | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #if SECRET_ENABLE | ||
| 12 | #include "secret.h" | ||
| 13 | #endif | ||
| 14 | |||
| 15 | __attribute__((weak)) void eeconfig_init_keymap(void) {} | ||
| 16 | |||
| 17 | void eeconfig_init_user(void) { | ||
| 18 | #ifdef UNICODE_ENABLE | ||
| 19 | set_unicode_input_mode(UC_LNX); | ||
| 20 | #endif | ||
| 21 | eeconfig_init_keymap(); | ||
| 22 | } | ||
| 23 | |||
| 24 | __attribute__((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; } | ||
| 25 | |||
| 26 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 27 | switch (keycode) { | ||
| 28 | case AUTRUCHE: | ||
| 29 | if (record->event.pressed) SEND_STRING("Autruche"); | ||
| 30 | return true; | ||
| 31 | } | ||
| 32 | |||
| 33 | return process_record_keymap(keycode, record) | ||
| 34 | #ifdef RAINBOW_UNICORN_ENABLE | ||
| 35 | && process_record_rainbowUnicorn(keycode, record) | ||
| 36 | #endif | ||
| 37 | #ifdef UNICODE_ENABLE | ||
| 38 | && process_record_unicode(keycode, record) | ||
| 39 | #endif | ||
| 40 | #if SECRET_ENABLE | ||
| 41 | && process_record_secret(keycode, record) | ||
| 42 | #endif | ||
| 43 | ; | ||
| 44 | } | ||
