diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-12 17:08:09 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-18 16:53:47 +0100 |
commit | 8b433beff34c382e50334bb59c4f71394845558c (patch) | |
tree | f52f432b2ee5f4ef3917c1c0e2fa052930d68f3a /src/core/frontend/applets/software_keyboard.cpp | |
parent | am: Allow applets to push multiple and different channels of data (diff) | |
download | yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.gz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.bz2 yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.lz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.xz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.zst yuzu-8b433beff34c382e50334bb59c4f71394845558c.zip |
Diffstat (limited to 'src/core/frontend/applets/software_keyboard.cpp')
-rw-r--r-- | src/core/frontend/applets/software_keyboard.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp index 2445a980d..4105101b3 100644 --- a/src/core/frontend/applets/software_keyboard.cpp +++ b/src/core/frontend/applets/software_keyboard.cpp @@ -9,12 +9,13 @@ namespace Core::Frontend { SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default; -std::optional<std::u16string> DefaultSoftwareKeyboardApplet::GetText( +void DefaultSoftwareKeyboardApplet::RequestText( + std::function<void(std::optional<std::u16string>)> out, SoftwareKeyboardParameters parameters) const { if (parameters.initial_text.empty()) - return u"yuzu"; + out(u"yuzu"); - return parameters.initial_text; + out(parameters.initial_text); } void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(std::u16string error_message) const { |