qmk_sweep_skeletyl/users/spidey3/spidey3_unicode.c
Ryan 5974d989fe
Normalise Unicode keycodes (#18898)
* `UC_MOD`/`UC_RMOD` -> `UC_NEXT`/`UC_PREV`

* `UNICODE_MODE_*` -> `QK_UNICODE_MODE_*`

* `UC_MAC` -> `UNICODE_MODE_MACOS`

* `UC_LNX` -> `UNICODE_MODE_LINUX`

* `UC_WIN` -> `UNICODE_MODE_WINDOWS`

* `UC_BSD` -> `UNICODE_MODE_BSD`

* `UC_WINC` -> `UNICODE_MODE_WINCOMPOSE`

* `UC_EMACS` -> `UNICODE_MODE_EMACS`

* `UC__COUNT` -> `UNICODE_MODE_COUNT`

* `UC_M_MA` -> `UC_MAC`

* `UC_M_LN` -> `UC_LINX`

* `UC_M_WI` -> `UC_WIN`

* `UC_M_BS` -> `UC_BSD`

* `UC_M_WC` -> `UC_WINC`

* `UC_M_EM` -> `UC_EMAC`

* Docs

* Update quantum/unicode/unicode.h
2022-10-31 21:15:12 +00:00

28 lines
826 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright 2022 Joshua Diamond josh@windowoffire.com (@spidey3)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "spidey3_unicode.h"
const uint32_t PROGMEM unicode_map[] = {
[BUL1] = 0x2022, // •
[BUL2] = 0x25E6, // ◦
[LARR] = 0x2190, // ←
[RARR] = 0x2192, // →
[ENDASH] = 0x2013, //
[EMDASH] = 0x2014, // —
[SPIDER] = 0x1F577, // 🕷
[SAD] = 0x2639, // ☹
[MEH] = 0x1F611, // 😑
[HAPPY] = 0x1F600, // 😀
[ANGRY] = 0x1F620, // 😠
[THUMBUP] = 0x1F44D, // 👍
[THUMBDN] = 0x1F44E, // 👎
[LOL] = 0x1F602, // 😂
[SURPRISE] = 0x1F62E, // 😮
};
void eeconfig_init_user_unicode(void) {
// Default to Linux style
set_unicode_input_mode(UNICODE_MODE_LINUX);
}