diff options
| author | 2018-11-11 16:41:31 -0500 | |
|---|---|---|
| committer | 2018-11-18 10:53:47 -0500 | |
| commit | fed6ab14c37f196f2a2fd378b46d7e5bd0118224 (patch) | |
| tree | 9e199e88df8e5a35e1f18d7a2f2ca29373d90367 /src/core/frontend/applets | |
| parent | am: Deglobalize software keyboard applet (diff) | |
| download | yuzu-fed6ab14c37f196f2a2fd378b46d7e5bd0118224.tar.gz yuzu-fed6ab14c37f196f2a2fd378b46d7e5bd0118224.tar.xz yuzu-fed6ab14c37f196f2a2fd378b46d7e5bd0118224.zip | |
am: Implement text check software keyboard mode
Allows the game to verify and send a message to the frontend.
Diffstat (limited to 'src/core/frontend/applets')
| -rw-r--r-- | src/core/frontend/applets/software_keyboard.cpp | 6 | ||||
| -rw-r--r-- | src/core/frontend/applets/software_keyboard.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp index 41d81c293..05e2dc6b7 100644 --- a/src/core/frontend/applets/software_keyboard.cpp +++ b/src/core/frontend/applets/software_keyboard.cpp | |||
| @@ -18,4 +18,10 @@ bool DefaultSoftwareKeyboardApplet::GetText(SoftwareKeyboardParameters parameter | |||
| 18 | return true; | 18 | return true; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(std::u16string error_message) const { | ||
| 22 | LOG_WARNING(Service_AM, | ||
| 23 | "(STUBBED) called - Default fallback software keyboard does not support text " | ||
| 24 | "check! (error_message={})", | ||
| 25 | Common::UTF16ToUTF8(error_message)); | ||
| 26 | } | ||
| 21 | } // namespace Core::Frontend | 27 | } // namespace Core::Frontend |
diff --git a/src/core/frontend/applets/software_keyboard.h b/src/core/frontend/applets/software_keyboard.h index 2ea9db889..0a82aac0d 100644 --- a/src/core/frontend/applets/software_keyboard.h +++ b/src/core/frontend/applets/software_keyboard.h | |||
| @@ -36,11 +36,13 @@ public: | |||
| 36 | virtual ~SoftwareKeyboardApplet(); | 36 | virtual ~SoftwareKeyboardApplet(); |
| 37 | 37 | ||
| 38 | virtual bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const = 0; | 38 | virtual bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const = 0; |
| 39 | virtual void SendTextCheckDialog(std::u16string error_message) const = 0; | ||
| 39 | }; | 40 | }; |
| 40 | 41 | ||
| 41 | class DefaultSoftwareKeyboardApplet final : public SoftwareKeyboardApplet { | 42 | class DefaultSoftwareKeyboardApplet final : public SoftwareKeyboardApplet { |
| 42 | public: | 43 | public: |
| 43 | bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const override; | 44 | bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const override; |
| 45 | void SendTextCheckDialog(std::u16string error_message) const override; | ||
| 44 | }; | 46 | }; |
| 45 | 47 | ||
| 46 | } // namespace Core::Frontend | 48 | } // namespace Core::Frontend |