nn::applet::CTR::SetPowerButtonCallback Function
void SetPowerButtonCallback(
AppletPowerButtonCallback callback,
uptr arg = 0
);
| Name | Description | |
|---|---|---|
| in | callback | Callback. |
| in | arg | Callback arguments. |
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.
CONFIDENTIAL