diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-10-23 14:15:33 +0200 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-10-23 14:15:33 +0200 |
commit | 4a666c201007eacf13a9031e3c9b156e2e04afe6 (patch) | |
tree | 6085cdddafe606f1a4f4a0425bd30f4dea48404c /quantum | |
parent | 2e2b9962cdc20e9f46dd0194f25a68ffa05e7d36 (diff) | |
download | qmk_firmware-4a666c201007eacf13a9031e3c9b156e2e04afe6.tar.gz qmk_firmware-4a666c201007eacf13a9031e3c9b156e2e04afe6.tar.xz |
Unicode WinCompose input method
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/process_keycode/process_unicode.c | 5 | ||||
-rw-r--r-- | quantum/process_keycode/process_unicode.h | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/quantum/process_keycode/process_unicode.c b/quantum/process_keycode/process_unicode.c index 37dd471ff..2a991cb39 100644 --- a/quantum/process_keycode/process_unicode.c +++ b/quantum/process_keycode/process_unicode.c @@ -42,6 +42,11 @@ void unicode_input_start (void) { register_code(KC_PPLS); unregister_code(KC_PPLS); break; + case UC_WINC: + register_code(KC_RALT); + unregister_code(KC_RALT); + register_code(KC_U); + unregister_code(KC_U); } wait_ms(UNICODE_TYPE_DELAY); } diff --git a/quantum/process_keycode/process_unicode.h b/quantum/process_keycode/process_unicode.h index a6c7e4584..065eeb5f6 100644 --- a/quantum/process_keycode/process_unicode.h +++ b/quantum/process_keycode/process_unicode.h @@ -3,10 +3,11 @@ #include "quantum.h" -#define UC_OSX 0 -#define UC_LNX 1 -#define UC_WIN 2 -#define UC_BSD 3 +#define UC_OSX 0 // Mac OS X +#define UC_LNX 1 // Linux +#define UC_WIN 2 // Windows 'HexNumpad' +#define UC_BSD 3 // BSD (not implemented) +#define UC_WINC 4 // WinCompose https://github.com/samhocevar/wincompose #ifndef UNICODE_TYPE_DELAY #define UNICODE_TYPE_DELAY 10 |