mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Added webConfigSetFooter and webConfigSetKeyRepeatFrame.
This commit is contained in:
parent
b58bc0a5dc
commit
5f9264df16
@ -236,6 +236,14 @@ Result webConfigSetBootDisplayKind(WebCommonConfig* config, u32 kind);
|
|||||||
*/
|
*/
|
||||||
Result webConfigSetBackgroundKind(WebCommonConfig* config, u32 kind);
|
Result webConfigSetBackgroundKind(WebCommonConfig* config, u32 kind);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Sets the whether the UI footer is enabled.
|
||||||
|
* @note Only available with config created by \ref webPageCreate or with Offline-applet.
|
||||||
|
* @param config WebCommonConfig object.
|
||||||
|
* @param flag Flag
|
||||||
|
*/
|
||||||
|
Result webConfigSetFooter(WebCommonConfig* config, bool flag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the whether the Pointer is enabled.
|
* @brief Sets the whether the Pointer is enabled.
|
||||||
* @note Only available with config created by \ref webPageCreate, \ref webLobbyCreate, or with Offline-applet.
|
* @note Only available with config created by \ref webPageCreate, \ref webLobbyCreate, or with Offline-applet.
|
||||||
@ -254,6 +262,15 @@ Result webConfigSetPointer(WebCommonConfig* config, bool flag);
|
|||||||
*/
|
*/
|
||||||
Result webConfigSetLeftStickMode(WebCommonConfig* config, u32 mode);
|
Result webConfigSetLeftStickMode(WebCommonConfig* config, u32 mode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Sets the KeyRepeatFrame.
|
||||||
|
* @note Only available with Offline-applet.
|
||||||
|
* @param config WebCommonConfig object.
|
||||||
|
* @param inval0 First input param.
|
||||||
|
* @param inval1 Second input param.
|
||||||
|
*/
|
||||||
|
Result webConfigSetKeyRepeatFrame(WebCommonConfig* config, s32 inval0, s32 inval1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the DisplayUrlKind.
|
* @brief Sets the DisplayUrlKind.
|
||||||
* @param config WebCommonConfig object.
|
* @param config WebCommonConfig object.
|
||||||
|
@ -269,6 +269,12 @@ Result webConfigSetBackgroundKind(WebCommonConfig* config, u32 kind) {
|
|||||||
return _webConfigSetU32(config, WebArgType_BackgroundKind, kind);
|
return _webConfigSetU32(config, WebArgType_BackgroundKind, kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result webConfigSetFooter(WebCommonConfig* config, bool flag) {
|
||||||
|
WebShimKind shim = _webGetShimKind(config);
|
||||||
|
if (shim != WebShimKind_Offline && shim != WebShimKind_Web) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
return _webConfigSetFlag(config, WebArgType_Footer, flag);
|
||||||
|
}
|
||||||
|
|
||||||
Result webConfigSetPointer(WebCommonConfig* config, bool flag) {
|
Result webConfigSetPointer(WebCommonConfig* config, bool flag) {
|
||||||
WebShimKind shim = _webGetShimKind(config);
|
WebShimKind shim = _webGetShimKind(config);
|
||||||
if (shim != WebShimKind_Offline && shim != WebShimKind_Web && shim != WebShimKind_Lobby) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
if (shim != WebShimKind_Offline && shim != WebShimKind_Web && shim != WebShimKind_Lobby) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
@ -281,6 +287,15 @@ Result webConfigSetLeftStickMode(WebCommonConfig* config, u32 mode) {
|
|||||||
return _webConfigSetU32(config, WebArgType_LeftStickMode, mode);
|
return _webConfigSetU32(config, WebArgType_LeftStickMode, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result webConfigSetKeyRepeatFrame(WebCommonConfig* config, s32 inval0, s32 inval1) {
|
||||||
|
Result rc=0;
|
||||||
|
WebShimKind shim = _webGetShimKind(config);
|
||||||
|
if (shim != WebShimKind_Offline) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
rc = _webConfigSetU32(config, WebArgType_KeyRepeatFrame0, inval0);
|
||||||
|
if (R_SUCCEEDED(rc)) rc = _webConfigSetU32(config, WebArgType_KeyRepeatFrame1, inval1);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
Result webConfigSetDisplayUrlKind(WebCommonConfig* config, bool kind) {
|
Result webConfigSetDisplayUrlKind(WebCommonConfig* config, bool kind) {
|
||||||
return _webConfigSetFlag(config, WebArgType_DisplayUrlKind, kind);
|
return _webConfigSetFlag(config, WebArgType_DisplayUrlKind, kind);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user