Added appletBeginToObserveHidInputForDevelop.

This commit is contained in:
yellows8 2019-08-19 21:19:24 -04:00
parent 7bcea54a65
commit 579a5203b6
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 15 additions and 0 deletions

View File

@ -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
/**

View File

@ -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) {