mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Added appletBeginToObserveHidInputForDevelop.
This commit is contained in:
parent
7bcea54a65
commit
579a5203b6
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user