diff options
author | jonavin <71780717+Jonavin@users.noreply.github.com> | 2021-10-11 21:03:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 18:03:58 -0700 |
commit | ea2505901e39715bbca8245b7ea767eb56f630dc (patch) | |
tree | 2aa76175b4a000c3d3c6fe13f5782bd93ac3507b /users/jonavin/jonavin.c | |
parent | 633ef1441b23755186f95b55957c50fb5c568e9f (diff) | |
download | qmk_firmware-ea2505901e39715bbca8245b7ea767eb56f630dc.tar.gz qmk_firmware-ea2505901e39715bbca8245b7ea767eb56f630dc.zip |
[Keymap] Jonavin new obe keymap (#14657)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Jonavin <=>
Diffstat (limited to 'users/jonavin/jonavin.c')
-rw-r--r-- | users/jonavin/jonavin.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c index f53aa8664e..1a0760ea8f 100644 --- a/users/jonavin/jonavin.c +++ b/users/jonavin/jonavin.c @@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. break; } } - return true; + return false; } #endif // ENCODER_ENABLE @@ -266,7 +266,7 @@ __attribute__ ((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t bool process_record_user(uint16_t keycode, keyrecord_t *record) { if (!process_record_keymap(keycode, record)) { return false; } - switch (keycode) { + switch (keycode) { case KC_00: if (record->event.pressed) { // when keycode KC_00 is pressed @@ -298,6 +298,34 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } else unregister_code16(keycode); break; #endif // RGB_MATRIX_ENABLE + +#ifdef EMOTICON_ENABLE + case EMO_SHRUG: + if (record->event.pressed) SEND_STRING("`\\_(\"/)_/`"); + else unregister_code16(keycode); + break; + case EMO_CONFUSE: + if (record->event.pressed) SEND_STRING("(*_*)"); + else unregister_code16(keycode); + break; + case EMO_TEARS: + if (record->event.pressed) SEND_STRING("(T_T)"); + else unregister_code16(keycode); + break; + case EMO_NERVOUS: + if (record->event.pressed) SEND_STRING("(~_~;)"); + else unregister_code16(keycode); + break; + case EMO_JOY: + if (record->event.pressed) SEND_STRING("(^o^)"); + else unregister_code16(keycode); + break; + case EMO_SAD: + if (record->event.pressed) SEND_STRING(":'-("); + else unregister_code16(keycode); + break; + #endif // EMOTICON_ENABLE + default: if (record->event.pressed) { #ifdef RGB_MATRIX_ENABLE |