summaryrefslogtreecommitdiff
path: root/users/rupa
diff options
context:
space:
mode:
Diffstat (limited to 'users/rupa')
-rw-r--r--users/rupa/unicode.c11
-rw-r--r--users/rupa/wrappers.h24
2 files changed, 18 insertions, 17 deletions
diff --git a/users/rupa/unicode.c b/users/rupa/unicode.c
index f99e6d0832..56b4509813 100644
--- a/users/rupa/unicode.c
+++ b/users/rupa/unicode.c
@@ -125,12 +125,14 @@ bool u_xp(bool is_shifted, const char *shifted, const char *plain) {
};
void zalgo(void) {
+ unicode_input_start();
int number = (rand() % (8 + 1 - 2)) + 2;
unsigned int index;
for (index=0; index<number; index++) {
uint16_t hex = (rand() % (0x036F + 1 - 0x0300)) + 0x0300;
register_hex(hex);
}
+ unicode_input_finish();
}
bool combined_text(uint16_t keycode) {
@@ -138,16 +140,16 @@ bool combined_text(uint16_t keycode) {
return false;
}
tap_code(keycode);
- unicode_input_start();
+
switch (combined_mode) {
case CM_CIRCLE:
- register_hex(0x20DD);
+ register_unicode(0x20DD);
break;
case CM_NO:
- register_hex(0x20E0);
+ register_unicode(0x20E0);
break;
case CM_KEYCAP:
- register_hex(0x20E3);
+ register_unicode(0x20E3);
break;
case CM_ZALGO:
zalgo();
@@ -155,7 +157,6 @@ bool combined_text(uint16_t keycode) {
default:
break;
}
- unicode_input_finish();
return true;
}
diff --git a/users/rupa/wrappers.h b/users/rupa/wrappers.h
index dfc00b5120..df32ef39ab 100644
--- a/users/rupa/wrappers.h
+++ b/users/rupa/wrappers.h
@@ -28,14 +28,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define G_LWR LT(_LOWER, KC_G)
#if defined(UNICODEMAP_ENABLE)
-# define CSHAPES XP(CCIR,CKEY)
-# define CUIDADO XP(CUI,HAS)
-# define NOPENAH XP(NOPE,STOP)
-# define MUSIC_A XP(M4,M8)
-# define MUSIC_B XP(M8B,M16)
-# define SMILE XP(SMB,SMW)
-# define STARS XP(STB,STW)
-# define YEPYEP XP(CHEK,HUN)
+# define CSHAPES UP(CCIR,CKEY)
+# define CUIDADO UP(CUI,HAS)
+# define NOPENAH UP(NOPE,STOP)
+# define MUSIC_A UP(M4,M8)
+# define MUSIC_B UP(M8B,M16)
+# define SMILE UP(SMB,SMW)
+# define STARS UP(STB,STW)
+# define YEPYEP UP(CHEK,HUN)
#endif
/* _QWERTY
@@ -70,10 +70,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* │RCtl│RAlt│RGui│ FLIP │ │ │ │M← │M↓ │M→ │
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
*/
-#define ____65_RAISE_______________ROW1 KC_GRV, X(IBNG), X(IRNY), _______, X(CENT), _______, _______, _______, STARS, _______, SMILE, X(NEG), CSHAPES, KC_DEL, KC_HOME
-#define ____65_RAISE_______________ROW2 _______, _______, WAT, X(LEXI), RUPA, TADA, YUNO, _______, X(LELM), X(OM), _______, MUSIC_A, MUSIC_B, _______, KC_INS
-#define ____65_RAISE_______________ROW3 _______, X(LALL), X(EFF), DICE, FART, _______, HUGS, JOY, KISS, LOD, _______, NOPENAH, YEPYEP, KC_END
-#define ____65_RAISE_______________ROW4 OS_RSFT, CUIDADO, X(ECKS), CATS, DOMO, BUGS, X(NUM), MUSIC, DANCE, X(LPRO), SHRUG, KC_BTN1, KC_MS_U, KC_BTN2
+#define ____65_RAISE_______________ROW1 KC_GRV, UM(IBNG), UM(IRNY), _______, UM(CENT), _______, _______, _______, STARS, _______, SMILE, UM(NEG), CSHAPES, KC_DEL, KC_HOME
+#define ____65_RAISE_______________ROW2 _______, _______, WAT, UM(LEXI), RUPA, TADA, YUNO, _______, UM(LELM), UM(OM), _______, MUSIC_A, MUSIC_B, _______, KC_INS
+#define ____65_RAISE_______________ROW3 _______, UM(LALL), UM(EFF), DICE, FART, _______, HUGS, JOY, KISS, LOD, _______, NOPENAH, YEPYEP, KC_END
+#define ____65_RAISE_______________ROW4 OS_RSFT, CUIDADO, UM(ECKS), CATS, DOMO, BUGS, UM(NUM), MUSIC, DANCE, UM(LPRO), SHRUG, KC_BTN1, KC_MS_U, KC_BTN2
#define ____65_RAISE_______________ROW5 OS_RCTL, OS_RALT, OS_RGUI, FLIP, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R
/* _LOWER