WPADSetAutoSleepTime

Syntax

#include <revolution/wpad.h>

void WPADSetAutoSleepTime( u8 minute );

Arguments

minute Represents the amount of time (in minutes) until the connection is automatically terminated if there is no input.

Return Values

None.

Description

Sets the timeout for the Wii console to automatically disconnect a Wii Remote with no change in the input state. To avoid unintentional battery consumption, communication with the Wii Remote will be automatically terminated by the Wii console if there has been no change in the input state of the Wii Remote for a set amount of time. The library includes a timer for each Wii Remote with the default timeout set to five minutes. Note that time already being counted internally is not reset even if the timeout value is changed using this function.

The auto-disconnect feature can be disabled by setting minute to zero.

See Also

None.

Revision History

2006/10/16 Changed "non-input" to "no change in input".
2006/08/15 Initial version.


CONFIDENTIAL