software_keyboard.cpp 1010 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/backend.h"
  5. #include "common/string_util.h"
  6. #include "core/frontend/applets/software_keyboard.h"
  7. namespace Core::Frontend {
  8. SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default;
  9. void DefaultSoftwareKeyboardApplet::RequestText(
  10. std::function<void(std::optional<std::u16string>)> out,
  11. SoftwareKeyboardParameters parameters) const {
  12. if (parameters.initial_text.empty())
  13. out(u"yuzu");
  14. out(parameters.initial_text);
  15. }
  16. void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(
  17. std::u16string error_message, std::function<void()> finished_check) const {
  18. LOG_WARNING(Service_AM,
  19. "(STUBBED) called - Default fallback software keyboard does not support text "
  20. "check! (error_message={})",
  21. Common::UTF16ToUTF8(error_message));
  22. finished_check();
  23. }
  24. } // namespace Core::Frontend