summaryrefslogtreecommitdiffstats
path: root/keyboards/planck
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-08-27 16:51:19 +1000
committerGitHub <noreply@github.com>2023-08-27 16:51:19 +1000
commit66b744b63b6328a206f9ab463b4acb44002e4bb0 (patch)
tree8a5d4a8b4222301ec9145a4bbd799cc72e33de41 /keyboards/planck
parent70e34e491c297231a3f987fd69760d38e79dbfa4 (diff)
Clean up Unicode API usage in user keymaps (#21849)
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/keymaps/rootiest/keymap.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/keyboards/planck/keymaps/rootiest/keymap.c b/keyboards/planck/keymaps/rootiest/keymap.c
index d6e8c7ef0f..a8ff2dd8d9 100644
--- a/keyboards/planck/keymaps/rootiest/keymap.c
+++ b/keyboards/planck/keymaps/rootiest/keymap.c
@@ -1328,33 +1328,25 @@ void send_degree_symbol(tap_dance_state_t* state, void* user_data) {
switch (state->count) {
case 4:
// ℃
- unicode_input_start();
- register_hex(0x2103);
- unicode_input_finish();
+ register_unicode(0x2103);
print("You pressed the Degrees key 4 times!\n");
reset_tap_dance(state);
break;
case 3:
//℉
- unicode_input_start();
- register_hex(0x2109);
- unicode_input_finish();
+ register_unicode(0x2109);
print("You pressed the Degrees key 3 times!\n");
reset_tap_dance(state);
break;
case 2:
// €
- unicode_input_start();
- register_hex(0x20AC);
- unicode_input_finish();
+ register_unicode(0x20AC);
print("You pressed the Degrees key 2 times!\n");
reset_tap_dance(state);
break;
case 1:
// °
- unicode_input_start();
- register_hex(0x00B0);
- unicode_input_finish();
+ register_unicode(0x00B0);
print("You pressed the Degrees key 1 time!\n");
reset_tap_dance(state);
break;