nn::applet::CTR::GetHomeButtonState Function

Syntax

AppletHomeButtonState GetHomeButtonState(
     void
);

Arguments

None.

Return Values

Returns the state.

Description

Gets the state of the HOME Button.

The return value is either nn::applet::CTR::HOME_BUTTON_NONE, nn::applet::CTR::HOME_BUTTON_SINGLE_PRESSED, or nn::applet::CTR::HOME_BUTTON_DOUBLE_PRESSED.

For any state other than nn::applet::CTR::HOME_BUTTON_NONE, run the necessary processing in the application and then either call the JumpToHomeMenuIfPrepared function, or call the PrepareToJumpToHomeMenu function followed by the JumpToHomeMenu function and finally the WaitForStarting function.

The JumpToHomeMenuIfPrepared function is implemented to call PrepareToJumpToHomeMenu, JumpToHomeMenu, and WaitForStarting in that order.


CONFIDENTIAL