2018-11-09 20:10:58 -05:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "common/logging/backend.h"
|
2018-11-11 16:57:59 -05:00
|
|
|
#include "common/string_util.h"
|
2018-11-09 20:10:58 -05:00
|
|
|
#include "core/frontend/applets/software_keyboard.h"
|
|
|
|
|
2018-11-11 16:39:25 -05:00
|
|
|
namespace Core::Frontend {
|
|
|
|
SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default;
|
|
|
|
|
2018-11-11 20:16:38 -05:00
|
|
|
std::optional<std::u16string> DefaultSoftwareKeyboardApplet::GetText(
|
|
|
|
SoftwareKeyboardParameters parameters) const {
|
2018-11-09 20:10:58 -05:00
|
|
|
if (parameters.initial_text.empty())
|
2018-11-11 20:16:38 -05:00
|
|
|
return u"yuzu";
|
2018-11-09 20:10:58 -05:00
|
|
|
|
2018-11-11 20:16:38 -05:00
|
|
|
return parameters.initial_text;
|
2018-11-09 20:10:58 -05:00
|
|
|
}
|
2018-11-11 16:39:25 -05:00
|
|
|
|
2018-11-11 16:41:31 -05:00
|
|
|
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));
|
|
|
|
}
|
2018-11-11 16:39:25 -05:00
|
|
|
} // namespace Core::Frontend
|