nn::applet::CTR::ProcessHomeButtonIfPrepared Function

Syntax

AppletWakeupState ProcessHomeButtonIfPrepared(
     void
);

Arguments

None.

Return Values

Returns the reason for waking up.

Description

Processes the HOME Button.

This uses the GetHomeButtonState function to check the state of the HOME Button and then, if necessary, calls the PrepareToJumpToHomeMenu, JumpToHomeMenu, and WaitForStarting functions in that order.

This function returns the value that is returned by the WaitForStarting function. If this is nn::applet::CTR::WAKEUP_BY_CANCEL, promptly exit the application.

For any other return value, resume normally.


CONFIDENTIAL