diff options
| author | 2022-07-27 15:53:32 -0400 | |
|---|---|---|
| committer | 2022-07-27 15:53:32 -0400 | |
| commit | a761d020c61de5a1d354ad9721a66f4c4c9b1e2e (patch) | |
| tree | a605f15828de48138474bf3a4df46afb52cadc13 /src/core | |
| parent | Merge pull request #8592 from devsnek/sig-handlers (diff) | |
| parent | qt_software_keyboard: Fix infinite loop when moving between buttons (diff) | |
| download | yuzu-a761d020c61de5a1d354ad9721a66f4c4c9b1e2e.tar.gz yuzu-a761d020c61de5a1d354ad9721a66f4c4c9b1e2e.tar.xz yuzu-a761d020c61de5a1d354ad9721a66f4c4c9b1e2e.zip | |
Merge pull request #8633 from Morph1984/optional-keys
applet/swkbd: Implement optional symbol keys
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/frontend/applets/software_keyboard.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/am/applets/applet_software_keyboard.cpp | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/frontend/applets/software_keyboard.h b/src/core/frontend/applets/software_keyboard.h index a405e3c94..094d1e713 100644 --- a/src/core/frontend/applets/software_keyboard.h +++ b/src/core/frontend/applets/software_keyboard.h | |||
| @@ -17,6 +17,8 @@ struct KeyboardInitializeParameters { | |||
| 17 | std::u16string sub_text; | 17 | std::u16string sub_text; |
| 18 | std::u16string guide_text; | 18 | std::u16string guide_text; |
| 19 | std::u16string initial_text; | 19 | std::u16string initial_text; |
| 20 | char16_t left_optional_symbol_key; | ||
| 21 | char16_t right_optional_symbol_key; | ||
| 20 | u32 max_text_length; | 22 | u32 max_text_length; |
| 21 | u32 min_text_length; | 23 | u32 min_text_length; |
| 22 | s32 initial_cursor_position; | 24 | s32 initial_cursor_position; |
diff --git a/src/core/hle/service/am/applets/applet_software_keyboard.cpp b/src/core/hle/service/am/applets/applet_software_keyboard.cpp index faa092957..c18236045 100644 --- a/src/core/hle/service/am/applets/applet_software_keyboard.cpp +++ b/src/core/hle/service/am/applets/applet_software_keyboard.cpp | |||
| @@ -536,6 +536,8 @@ void SoftwareKeyboard::InitializeFrontendNormalKeyboard() { | |||
| 536 | .sub_text{std::move(sub_text)}, | 536 | .sub_text{std::move(sub_text)}, |
| 537 | .guide_text{std::move(guide_text)}, | 537 | .guide_text{std::move(guide_text)}, |
| 538 | .initial_text{initial_text}, | 538 | .initial_text{initial_text}, |
| 539 | .left_optional_symbol_key{swkbd_config_common.left_optional_symbol_key}, | ||
| 540 | .right_optional_symbol_key{swkbd_config_common.right_optional_symbol_key}, | ||
| 539 | .max_text_length{max_text_length}, | 541 | .max_text_length{max_text_length}, |
| 540 | .min_text_length{min_text_length}, | 542 | .min_text_length{min_text_length}, |
| 541 | .initial_cursor_position{initial_cursor_position}, | 543 | .initial_cursor_position{initial_cursor_position}, |
| @@ -591,6 +593,8 @@ void SoftwareKeyboard::InitializeFrontendInlineKeyboardOld() { | |||
| 591 | .sub_text{}, | 593 | .sub_text{}, |
| 592 | .guide_text{}, | 594 | .guide_text{}, |
| 593 | .initial_text{current_text}, | 595 | .initial_text{current_text}, |
| 596 | .left_optional_symbol_key{appear_arg.left_optional_symbol_key}, | ||
| 597 | .right_optional_symbol_key{appear_arg.right_optional_symbol_key}, | ||
| 594 | .max_text_length{max_text_length}, | 598 | .max_text_length{max_text_length}, |
| 595 | .min_text_length{min_text_length}, | 599 | .min_text_length{min_text_length}, |
| 596 | .initial_cursor_position{initial_cursor_position}, | 600 | .initial_cursor_position{initial_cursor_position}, |
| @@ -632,6 +636,8 @@ void SoftwareKeyboard::InitializeFrontendInlineKeyboardNew() { | |||
| 632 | .sub_text{}, | 636 | .sub_text{}, |
| 633 | .guide_text{}, | 637 | .guide_text{}, |
| 634 | .initial_text{current_text}, | 638 | .initial_text{current_text}, |
| 639 | .left_optional_symbol_key{appear_arg.left_optional_symbol_key}, | ||
| 640 | .right_optional_symbol_key{appear_arg.right_optional_symbol_key}, | ||
| 635 | .max_text_length{max_text_length}, | 641 | .max_text_length{max_text_length}, |
| 636 | .min_text_length{min_text_length}, | 642 | .min_text_length{min_text_length}, |
| 637 | .initial_cursor_position{initial_cursor_position}, | 643 | .initial_cursor_position{initial_cursor_position}, |