am: Implement text check software keyboard mode
Allows the game to verify and send a message to the frontend.
This commit is contained in:
parent
e696ed1f4d
commit
fed6ab14c3
6 changed files with 120 additions and 14 deletions
|
@ -18,4 +18,10 @@ bool DefaultSoftwareKeyboardApplet::GetText(SoftwareKeyboardParameters parameter
|
|||
return true;
|
||||
}
|
||||
|
||||
void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(std::u16string error_message) const {
|
||||
LOG_WARNING(Service_AM,
|
||||
"(STUBBED) called - Default fallback software keyboard does not support text "
|
||||
"check! (error_message={})",
|
||||
Common::UTF16ToUTF8(error_message));
|
||||
}
|
||||
} // namespace Core::Frontend
|
||||
|
|
|
@ -36,11 +36,13 @@ public:
|
|||
virtual ~SoftwareKeyboardApplet();
|
||||
|
||||
virtual bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const = 0;
|
||||
virtual void SendTextCheckDialog(std::u16string error_message) const = 0;
|
||||
};
|
||||
|
||||
class DefaultSoftwareKeyboardApplet final : public SoftwareKeyboardApplet {
|
||||
public:
|
||||
bool GetText(SoftwareKeyboardParameters parameters, std::u16string& text) const override;
|
||||
void SendTextCheckDialog(std::u16string error_message) const override;
|
||||
};
|
||||
|
||||
} // namespace Core::Frontend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue