2018-11-10 01:10:58 +00: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"
|
|
|
|
#include "core/frontend/applets/software_keyboard.h"
|
|
|
|
|
2018-11-11 21:39:25 +00:00
|
|
|
namespace Core::Frontend {
|
|
|
|
SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default;
|
|
|
|
|
|
|
|
bool DefaultSoftwareKeyboardApplet::GetText(SoftwareKeyboardParameters parameters,
|
|
|
|
std::u16string& text) const {
|
2018-11-10 01:10:58 +00:00
|
|
|
if (parameters.initial_text.empty())
|
2018-11-11 21:39:25 +00:00
|
|
|
text = u"yuzu";
|
2018-11-10 01:10:58 +00:00
|
|
|
else
|
|
|
|
text = parameters.initial_text;
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
2018-11-11 21:39:25 +00:00
|
|
|
|
|
|
|
} // namespace Core::Frontend
|