nn::applet::CTR::SetPowerButtonCallback Function

Syntax

void SetPowerButtonCallback(
     AppletPowerButtonCallback callback,
     uptr arg = 0
);

Arguments

Name Description
in callback Callback.
in arg Callback arguments.

Return Values

None.

Description

Sets the callback invoked when POWER is pressed.

This is invoked when the POWER Button is pressed quickly (rather than held down).

The application must close after the POWER Button is pressed. Call the nn::applet::CTR::IsExpectedToCloseApplication function to check if the application must close.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL