diff --git a/nx/include/switch/applets/swkbd.h b/nx/include/switch/applets/swkbd.h index ca5535e7..a4db4039 100644 --- a/nx/include/switch/applets/swkbd.h +++ b/nx/include/switch/applets/swkbd.h @@ -390,7 +390,7 @@ void swkbdConfigSetTextCheckCallback(SwkbdConfig* c, SwkbdTextCheckCb cb); Result swkbdShow(SwkbdConfig* c, char* out_string, size_t out_string_size); /** - * @brief Creates a SwkbdInline object. + * @brief Creates a SwkbdInline object. Only available on 2.0.0+. * @note This is essentially an asynchronous version of the regular swkbd. * @note This calls \ref swkbdInlineSetUtf8Mode internally with flag=true. * @param s SwkbdInline object. diff --git a/nx/source/applets/swkbd.c b/nx/source/applets/swkbd.c index 7088e82f..9c618c34 100644 --- a/nx/source/applets/swkbd.c +++ b/nx/source/applets/swkbd.c @@ -347,6 +347,9 @@ Result swkbdInlineCreate(SwkbdInline* s) { _swkbdInitVersion(&s->version); + //swkbd-inline is only available on 2.0.0+. + if (s->version < 0x10006) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + s->calcArg.unk_x0 = 0x30000; s->calcArg.size = sizeof(s->calcArg);