diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-10-26 00:48:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 00:48:44 -0400 |
commit | 8d60354d5a116b6cb1fc32eac7461eb125543c7d (patch) | |
tree | b9437dc37ce57823f3fe61fd5f60f51c12de83e1 | |
parent | 108d0e89a619f1e002089ff7a41d1cfb58a4fd6a (diff) | |
parent | 4a666c201007eacf13a9031e3c9b156e2e04afe6 (diff) | |
download | qmk_firmware-8d60354d5a116b6cb1fc32eac7461eb125543c7d.tar.gz qmk_firmware-8d60354d5a116b6cb1fc32eac7461eb125543c7d.zip |
Merge pull request #844 from priyadi/unicode_wincompose_input
Unicode WinCompose input method
-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 a71af5437..cd3a610b4 100644 --- a/quantum/process_keycode/process_unicode.c +++ b/quantum/process_keycode/process_unicode.c | |||
@@ -42,6 +42,11 @@ void unicode_input_start (void) { | |||
42 | register_code(KC_PPLS); | 42 | register_code(KC_PPLS); |
43 | unregister_code(KC_PPLS); | 43 | unregister_code(KC_PPLS); |
44 | break; | 44 | break; |
45 | case UC_WINC: | ||
46 | register_code(KC_RALT); | ||
47 | unregister_code(KC_RALT); | ||
48 | register_code(KC_U); | ||
49 | unregister_code(KC_U); | ||
45 | } | 50 | } |
46 | wait_ms(UNICODE_TYPE_DELAY); | 51 | wait_ms(UNICODE_TYPE_DELAY); |
47 | } | 52 | } |
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 @@ | |||
3 | 3 | ||
4 | #include "quantum.h" | 4 | #include "quantum.h" |
5 | 5 | ||
6 | #define UC_OSX 0 | 6 | #define UC_OSX 0 // Mac OS X |
7 | #define UC_LNX 1 | 7 | #define UC_LNX 1 // Linux |
8 | #define UC_WIN 2 | 8 | #define UC_WIN 2 // Windows 'HexNumpad' |
9 | #define UC_BSD 3 | 9 | #define UC_BSD 3 // BSD (not implemented) |
10 | #define UC_WINC 4 // WinCompose https://github.com/samhocevar/wincompose | ||
10 | 11 | ||
11 | #ifndef UNICODE_TYPE_DELAY | 12 | #ifndef UNICODE_TYPE_DELAY |
12 | #define UNICODE_TYPE_DELAY 10 | 13 | #define UNICODE_TYPE_DELAY 10 |