nn::applet::CTR::ProcessPowerButton Function
bool ProcessPowerButton(
void
);
None.
Processes POWER Button transitions.
This function is used to handle POWER Button transitions when this is required by the nn::applet::CTR::IsExpectedToProcessPowerButton function.
The return value indicates whether it is necessary to wait with the nn::applet::CTR::WaitForStarting function after this function is called. If this is true, call the function. If this is false, you do not need to call the function. (Of course, even if you call the function it will simply exit without waiting.)
Example
if ( applet::IsExpectedToProcessPowerButton() )
{
applet::ProcessPowerButton();
applet::WaitForStarting();
if ( applet::IsExpectedToCloseApplication() )
{
_close_application();
}
}
CONFIDENTIAL