diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index 2f8afda4..3863bdbf 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -1882,6 +1882,12 @@ Result appletStartRebootSequenceForOverlay(void); */ Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag); +/** + * @brief Enables HID input for the OverlayApplet, without disabling input for the foreground applet. Generally \ref appletBeginToWatchShortHomeButtonMessage / appletEndToWatchShortHomeButtonMessage should be used instead. + * @note Only available with AppletType_OverlayApplet on [5.0.0+]. + */ +Result appletBeginToObserveHidInputForDevelop(void); + // IAppletCommonFunctions /** diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 2050adae..91c79e26 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -5163,6 +5163,15 @@ Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag) { return _appletCmdInBool(&g_appletIFunctions, flag, 20); } +Result appletBeginToObserveHidInputForDevelop(void) { + if (__nx_applet_type != AppletType_OverlayApplet) + return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); + if (hosversionBefore(5,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + + return _appletCmdNoIO(&g_appletIFunctions, 101); +} + // IAppletCommonFunctions Result appletReadThemeStorage(void* buffer, size_t size, u64 offset, size_t *transfer_size) {