2020-09-25 03:24:14 +00:00
|
|
|
|
/*
|
|
|
|
|
Copyright 2020 rupa <rupa@lrrr.us> @rupa
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "rupa.h"
|
|
|
|
|
|
|
|
|
|
#if defined(UNICODEMAP_ENABLE)
|
|
|
|
|
enum unicode_names {
|
2020-12-25 20:21:40 +00:00
|
|
|
|
CCIR, // COMBINING ⃝
|
|
|
|
|
CENT, // ¢
|
|
|
|
|
CHEK, // ✓
|
|
|
|
|
CKEY, // COMBINING ⃣
|
|
|
|
|
CUI, // ⚠
|
|
|
|
|
ECKS, // ✖
|
|
|
|
|
EFF, // ſ
|
2020-09-25 03:24:14 +00:00
|
|
|
|
HAS, // ☭
|
2020-12-25 20:21:40 +00:00
|
|
|
|
HUN, // 💯
|
2020-09-25 03:24:14 +00:00
|
|
|
|
IBNG, // ‽
|
|
|
|
|
IRNY, // ⸮
|
2020-12-25 20:21:40 +00:00
|
|
|
|
LALL, // ∀
|
|
|
|
|
LELM, // ∈
|
|
|
|
|
LEXI, // ∃
|
|
|
|
|
LPRO, // ⊢
|
2020-09-25 03:24:14 +00:00
|
|
|
|
M4, // ♩
|
|
|
|
|
M8, // ♪
|
|
|
|
|
M8B, // ♫
|
|
|
|
|
M16, // ♬
|
2020-12-25 20:21:40 +00:00
|
|
|
|
NEG, // COMBINING ⃠
|
|
|
|
|
NOPE, // 🚫
|
|
|
|
|
NUM, // №
|
2020-09-25 03:24:14 +00:00
|
|
|
|
OM, // ॐ
|
2020-12-25 20:21:40 +00:00
|
|
|
|
SMB, // ☻
|
|
|
|
|
SMW, // ☺
|
2020-09-25 03:24:14 +00:00
|
|
|
|
STB, // ★
|
2020-12-25 20:21:40 +00:00
|
|
|
|
STOP, // ⛔
|
2020-09-25 03:24:14 +00:00
|
|
|
|
STW, // ☆
|
|
|
|
|
};
|
|
|
|
|
#endif
|
2020-12-25 20:21:40 +00:00
|
|
|
|
|
|
|
|
|
typedef enum combined_modes {
|
|
|
|
|
CM_NULL = 0,
|
|
|
|
|
CM_CIRCLE,
|
|
|
|
|
CM_NO,
|
|
|
|
|
CM_KEYCAP,
|
|
|
|
|
CM_ZALGO,
|
|
|
|
|
CM_MAX
|
|
|
|
|
} combined_mode_t;
|
|
|
|
|
|
|
|
|
|
combined_mode_t combined_mode;
|
|
|
|
|
|
|
|
|
|
// random choices
|
|
|
|
|
const char * d6(void);
|
|
|
|
|
const char * dance(bool more);
|
|
|
|
|
const char * flip(bool back);
|
|
|
|
|
const char * joy(bool harder);
|
|
|
|
|
|
|
|
|
|
// like X and XP
|
|
|
|
|
bool u_x(const char *text);
|
|
|
|
|
bool u_xp(bool is_shifted, const char * shifted, const char *plain);
|
|
|
|
|
|
|
|
|
|
bool combined_text(uint16_t keycode);
|
|
|
|
|
void cycle_combined_mode(void);
|
|
|
|
|
combined_mode_t set_combined_mode(combined_mode_t mode);
|