nn::applet::CTR::GetHomeButtonState FunctionAppletHomeButtonState GetHomeButtonState( void );
None.
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, call the ProcessHomeButton function after the application has run the necessary processing.
In general, use the IsExpectedToProcessHomeMenu function to determine whether HOME Button processing is required. That takes into account not only the importance of jumping to the HOME Menu because of a HOME Button press but also similar requests to jump to the HOME Menu from other applets.
Once you get a value other than applet::HOME_BUTTON_NONE from this function, you will continue to get the same value until you clear it (to applet::HOME_BUTTON_NONE).
CONFIDENTIAL