Stub out InlineKeyboard instead of throwing an error

This commit is contained in:
Maccraft123 2022-11-28 00:08:42 +01:00 committed by Billy Laws
parent 2a421e7146
commit c3924e0f08
2 changed files with 8 additions and 3 deletions

View File

@ -68,12 +68,16 @@ namespace skyline::applet::swkbd {
std::move(onAppletStateChanged),
std::move(onNormalDataPushFromApplet),
std::move(onInteractiveDataPushFromApplet),
appletMode} {
if (appletMode != service::applet::LibraryAppletMode::AllForeground)
throw exception("Inline Software Keyboard not implemeted");
appletMode}, mode{appletMode} {
}
Result SoftwareKeyboardApplet::Start() {
if (mode != service::applet::LibraryAppletMode::AllForeground) {
Logger::Warn("Stubbing out InlineKeyboard!");
SendResult();
return {};
}
std::scoped_lock lock{normalInputDataMutex};
auto commonArgs{normalInputData.front()->GetSpan().as<service::applet::CommonArguments>()};
normalInputData.pop();

View File

@ -74,6 +74,7 @@ namespace skyline::applet::swkbd {
#pragma pack(pop)
KeyboardConfigVB config{};
service::applet::LibraryAppletMode mode{};
bool validationPending{};
std::u16string currentText{};
CloseResult currentResult{};