diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-05-18 23:47:16 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-05-18 23:47:16 -0400 |
commit | b732b79b49b098dba8e14493c745075f336747d8 (patch) | |
tree | 069f529df73ba8bfbcf7003f5ddd3987ecaadc57 /tmk_core/common.mk | |
parent | bf545061f2a71b054ccdca6f6261bb7c2ffa4957 (diff) | |
download | qmk_firmware-b732b79b49b098dba8e14493c745075f336747d8.tar.gz qmk_firmware-b732b79b49b098dba8e14493c745075f336747d8.zip |
adapts unicode to quantum.c (#333)
* Unicode
to have unicode input you need to:
- set your OS input method to UNICODE if needed
- enable unicode in your makefile
- copy the action_function from
keyboard/planck/keymaps/unicode/unicode.c to your keymap.c
set the target OS method in your keymap.c: void matrix_init_user() {
set_unicode_mode(UC_OSX); } you can then switch when you want with:
set_unicode_mode(UC_OSX); set_unicode_mode(UC_LNX);
set_unicode_mode(UC_WIN);
put some unicode codes in your keymap like so: UC(0x0061)
I did change the bit mask in quantum/keymap_common.c and .h
I’m afraid we will need uint32 to get a total support for all unicode
tables or relocate the handler as @mbarkhau did.
* rearranges keycode values, hooks-up unicode
* removes extra lalt ref
* adds unicode shortcuts and example
Diffstat (limited to 'tmk_core/common.mk')
-rw-r--r-- | tmk_core/common.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index 9cb2eb8ec..b5d7e39dd 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk | |||
@@ -60,6 +60,10 @@ ifeq ($(strip $(AUDIO_ENABLE)), yes) | |||
60 | OPT_DEFS += -DAUDIO_ENABLE | 60 | OPT_DEFS += -DAUDIO_ENABLE |
61 | endif | 61 | endif |
62 | 62 | ||
63 | ifeq ($(strip $(UNICODE_ENABLE)), yes) | ||
64 | OPT_DEFS += -DUNICODE_ENABLE | ||
65 | endif | ||
66 | |||
63 | ifeq ($(strip $(USB_6KRO_ENABLE)), yes) | 67 | ifeq ($(strip $(USB_6KRO_ENABLE)), yes) |
64 | OPT_DEFS += -DUSB_6KRO_ENABLE | 68 | OPT_DEFS += -DUSB_6KRO_ENABLE |
65 | endif | 69 | endif |