mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Added appletPerformSystemButtonPressing and the enum types for it. Updated docs.
This commit is contained in:
parent
b20147eeb7
commit
fc09340a42
@ -144,6 +144,9 @@ typedef enum {
|
||||
typedef enum {
|
||||
AppletSystemButtonType_HomeButtonShortPressing = 1, ///< Short-pressing with the HOME-button.
|
||||
AppletSystemButtonType_HomeButtonLongPressing = 2, ///< Long-pressing with the HOME-button.
|
||||
AppletSystemButtonType_PowerButtonShortPressing = 3, ///< Short-pressing with the Power-button. Only available with \ref appletPerformSystemButtonPressing.
|
||||
AppletSystemButtonType_PowerButtonLongPressing = 4, ///< Long-pressing with the Power-button. Only available with \ref appletPerformSystemButtonPressing.
|
||||
AppletSystemButtonType_Shutdown = 5, ///< Shutdown the system, as if the Power-button was held for longer than ::AppletSystemButtonType_PowerButtonLongPressing. Only available with \ref appletPerformSystemButtonPressing.
|
||||
AppletSystemButtonType_CaptureButtonShortPressing = 6, ///< Short-pressing with the Capture-button.
|
||||
AppletSystemButtonType_CaptureButtonLongPressing = 7, ///< Long-pressing with the Capture-button.
|
||||
} AppletSystemButtonType;
|
||||
@ -432,7 +435,7 @@ Result appletGetApplicationIdByContentActionName(u64 *titleID, const char *name)
|
||||
Result appletSetCpuBoostMode(ApmCpuBoostMode mode);
|
||||
|
||||
/**
|
||||
* @brief Perform SystemButtonPressing with the specified \ref AppletSystemButtonType.
|
||||
* @brief Perform SystemButtonPressing with the specified \ref AppletSystemButtonType. Internally this cmd checks a state field, verifies that the type is allowed, then runs the same func as \ref appletPerformSystemButtonPressing internally.
|
||||
* @note Only available with [6.0.0+].
|
||||
* @param[in] type \ref AppletSystemButtonType
|
||||
*/
|
||||
@ -1693,6 +1696,14 @@ Result appletSetHomeButtonDoubleClickEnabled(bool flag);
|
||||
*/
|
||||
Result appletGetHomeButtonDoubleClickEnabled(bool *out);
|
||||
|
||||
// IDebugFunctions
|
||||
|
||||
/**
|
||||
* @brief Perform SystemButtonPressing with the specified \ref AppletSystemButtonType.
|
||||
* @param[in] type \ref AppletSystemButtonType
|
||||
*/
|
||||
Result appletPerformSystemButtonPressing(AppletSystemButtonType type);
|
||||
|
||||
// State / other
|
||||
|
||||
/**
|
||||
|
@ -4785,6 +4785,12 @@ Result appletGetHomeButtonDoubleClickEnabled(bool *out) {
|
||||
return _appletCmdNoInOutBool(&g_appletIAppletCommonFunctions, out, 51);
|
||||
}
|
||||
|
||||
// IDebugFunctions
|
||||
|
||||
Result appletPerformSystemButtonPressing(AppletSystemButtonType type) {
|
||||
return _appletCmdInU32(&g_appletIDebugFunctions, type, 10);
|
||||
}
|
||||
|
||||
// State / other
|
||||
|
||||
u8 appletGetOperationMode(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user