Unicode WinCompose input method
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>
Sun, 23 Oct 2016 12:15:33 +0000 (19:15 +0700)
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>
Sun, 23 Oct 2016 12:15:33 +0000 (19:15 +0700)
quantum/process_keycode/process_unicode.c
quantum/process_keycode/process_unicode.h

index 37dd471ffddd7c347570bd6550e5d4530a8bdadd..2a991cb3932abfcfe1ba88902bfac7726501c0b5 100644 (file)
@@ -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);
 }
index a6c7e458453d814180d7813a4ff0b1df8b456b12..065eeb5f6a80c9d9e44051f2bd4dbba1952ec9f2 100644 (file)
@@ -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