summaryrefslogtreecommitdiffstats
path: root/users/jonavin/jonavin.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/jonavin/jonavin.c')
-rw-r--r--users/jonavin/jonavin.c32
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