#include <revolution/os.h> typedef void (*OSResetCallback)(void); OSResetCallback OSSetResetCallback(OSResetCallback callback);
| callback | Pointer to the callback function called at the time of reset button input. |
|---|
Returns a pointer to a previously set callback function.
Registers a one-time reset callback. The callback function is called only once when the console's reset button is pressed, and then the callback is automatically unregistered. The callback function must be reinstalled to capture the next RESET Button input.
Note:
Comment:
With the GameCube, applications needed to poll for the state of the reset button after a reset interrupt was detected, but this is not required in the Revolution SDK.
Reset Button Functions
OSGetResetButtonState
2010/05/28 Added a link for more information to the note regarding the failure to call the registered callback.
2006/08/10 Revised to match Wii reset specifications.
2006/03/01 Initial version.
CONFIDENTIAL