]> git.donarmstrong.com Git - qmk_firmware.git/commit
adapts unicode to quantum.c (#333)
authorJack Humbert <jack.humb@gmail.com>
Thu, 19 May 2016 03:47:16 +0000 (23:47 -0400)
committerJack Humbert <jack.humb@gmail.com>
Thu, 19 May 2016 03:47:16 +0000 (23:47 -0400)
commitb732b79b49b098dba8e14493c745075f336747d8
tree069f529df73ba8bfbcf7003f5ddd3987ecaadc57
parentbf545061f2a71b054ccdca6f6261bb7c2ffa4957
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
keyboard/planck/keymaps/unicode/keymap.c [new file with mode: 0644]
keyboard/planck/keymaps/unicode/makefile.mk [new file with mode: 0644]
quantum/keymap_common.c
quantum/keymap_common.h
quantum/keymap_unicode.c [deleted file]
quantum/quantum.c
quantum/quantum.h
quantum/quantum.mk
quantum/unicode.h [new file with mode: 0644]
tmk_core/common.mk