Adapt to unicode refactoring (#18345)
This commit is contained in:
parent
55c637f28f
commit
7c49b8caa9
4 changed files with 3 additions and 3 deletions
|
|
@ -11,5 +11,5 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
|||
SRC += layer_rgb.c
|
||||
endif
|
||||
ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
|
||||
SRC += unicode.c
|
||||
SRC += spidey3_unicode.c
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
#ifdef UNICODEMAP_ENABLE
|
||||
# include "unicode.h"
|
||||
# include "spidey3_unicode.h"
|
||||
#endif
|
||||
|
||||
enum userspace_layers {
|
||||
|
|
|
|||
28
users/spidey3/spidey3_unicode.c
Normal file
28
users/spidey3/spidey3_unicode.c
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// 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(UC_LNX);
|
||||
}
|
||||
31
users/spidey3/spidey3_unicode.h
Normal file
31
users/spidey3/spidey3_unicode.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// Copyright 2022 Joshua Diamond josh@windowoffire.com (@spidey3)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#ifdef UNICODEMAP_ENABLE
|
||||
|
||||
enum unicode_names {
|
||||
BUL1,
|
||||
BUL2,
|
||||
LARR,
|
||||
RARR,
|
||||
ENDASH,
|
||||
EMDASH,
|
||||
SPIDER,
|
||||
SAD,
|
||||
MEH,
|
||||
HAPPY,
|
||||
ANGRY,
|
||||
THUMBUP,
|
||||
THUMBDN,
|
||||
LOL,
|
||||
SURPRISE,
|
||||
};
|
||||
|
||||
# define X_BUL (XP(BUL1, BUL2))
|
||||
# define X_DASH (XP(EMDASH, ENDASH))
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue