diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 18:22:41 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 18:22:41 +0100 |
commit | ba9f12810f7dc4969ac175f6e959d5fe6407747d (patch) | |
tree | f4039e46985d56bac471bd8568f96b159a92b2ae /src/keymaps/soispha/keymap.c | |
parent | feat(src): Make usable (diff) | |
download | qmk_layout-ba9f12810f7dc4969ac175f6e959d5fe6407747d.zip |
feat(treewide): Migrate the Unicode handling to a custom c program, that works via rawhid
Diffstat (limited to 'src/keymaps/soispha/keymap.c')
-rw-r--r-- | src/keymaps/soispha/keymap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/keymaps/soispha/keymap.c b/src/keymaps/soispha/keymap.c index 9391212..2b6c16f 100644 --- a/src/keymaps/soispha/keymap.c +++ b/src/keymaps/soispha/keymap.c @@ -13,6 +13,9 @@ #include "layout/layout.h" #include "macros.h" #include "version.h" +#include <stdbool.h> +#include <stdint.h> +#include "hid/hid.h" bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { @@ -21,6 +24,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION " (rev: " QMK_GIT_HASH ")"); } + return false; break; case ST_MACRO_0: if (record->event.pressed) { @@ -77,6 +81,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return false; } + + if (keycode >= UK_UNICODE && keycode <= UK_UNICODE_MAX) { + hid_send(QK_UNICODE_GET_CODE_POINT(keycode)); + } + return true; } |