nn::applet::CTR::ProcessPowerButton Function

Syntax

bool ProcessPowerButton(
     void
);

Arguments

None.

Return Values

Returns a value indicating whether it is necessary to wait.

Description

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();
    }
  }

Revision History

2010/12/09
Initial version.

CONFIDENTIAL