From cce2420bb24f31ebaee22b4d6e54311ef78668c2 Mon Sep 17 00:00:00 2001 From: Yann Hodique Date: Sun, 15 Mar 2020 21:42:10 -0700 Subject: [PATCH] [Keymap] fix sigma keymaps build (#8427) handle unicode input properly. --- keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk | 1 + users/sigma/sigma.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk b/keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk index 09a3af829..f1de332c0 100644 --- a/keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk +++ b/keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk @@ -1 +1,2 @@ BOOTLOADER = halfkay +UNICODE_ENABLE = yes diff --git a/users/sigma/sigma.c b/users/sigma/sigma.c index b2bf40d57..527925a63 100644 --- a/users/sigma/sigma.c +++ b/users/sigma/sigma.c @@ -64,6 +64,7 @@ void led_set_keymap(uint8_t usb_led) {} void set_os(uint8_t os) { runtime_userspace_config.os_target = os; +#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE) switch (os) { case _OS_MACOS: set_unicode_input_mode(UC_OSX); @@ -75,6 +76,7 @@ void set_os(uint8_t os) { set_unicode_input_mode(UC_WIN); break; } +#endif } void matrix_init_user(void) {