summaryrefslogtreecommitdiff
path: root/users/romus
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 /users/romus
parent70e34e491c297231a3f987fd69760d38e79dbfa4 (diff)
Clean up Unicode API usage in user keymaps (#21849)
Diffstat (limited to 'users/romus')
-rw-r--r--users/romus/romus.c56
1 files changed, 14 insertions, 42 deletions
diff --git a/users/romus/romus.c b/users/romus/romus.c
index 7d59f28eec..e16dd3b8a0 100644
--- a/users/romus/romus.c
+++ b/users/romus/romus.c
@@ -291,13 +291,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_A:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x00c2);
- unicode_input_finish();
+ register_unicode(0x00c2);
} else {
- unicode_input_start();
- register_hex(0x00e2);
- unicode_input_finish();
+ register_unicode(0x00e2);
}
}
return false;
@@ -305,13 +301,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_O:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x00d6);
- unicode_input_finish();
+ register_unicode(0x00d6);
} else {
- unicode_input_start();
- register_hex(0x00f6);
- unicode_input_finish();
+ register_unicode(0x00f6);
}
}
return false;
@@ -319,13 +311,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_U:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x00dc);
- unicode_input_finish();
+ register_unicode(0x00dc);
} else {
- unicode_input_start();
- register_hex(0x00fc);
- unicode_input_finish();
+ register_unicode(0x00fc);
}
}
return false;
@@ -333,13 +321,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_I:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x0130);
- unicode_input_finish();
+ register_unicode(0x0130);
} else {
- unicode_input_start();
- register_hex(0x0131);
- unicode_input_finish();
+ register_unicode(0x0131);
}
}
return false;
@@ -347,13 +331,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_G:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x011e);
- unicode_input_finish();
+ register_unicode(0x011e);
} else {
- unicode_input_start();
- register_hex(0x011f);
- unicode_input_finish();
+ register_unicode(0x011f);
}
}
return false;
@@ -361,13 +341,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_C:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x00c7);
- unicode_input_finish();
+ register_unicode(0x00c7);
} else {
- unicode_input_start();
- register_hex(0x00e7);
- unicode_input_finish();
+ register_unicode(0x00e7);
}
}
return false;
@@ -375,13 +351,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case TUR_S:
if (record->event.pressed) {
if ( is_capital ) {
- unicode_input_start();
- register_hex(0x015e);
- unicode_input_finish();
+ register_unicode(0x015e);
} else {
- unicode_input_start();
- register_hex(0x015f);
- unicode_input_finish();
+ register_unicode(0x015f);
}
}
return false;