1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>WPADSetAutoSleepTime</TITLE> 9</HEAD> 10<BODY> 11 12<H1>WPADSetAutoSleepTime</H1> 13 14 15<H2>C Specification</H2> 16<DL> 17 <DD> 18<PRE><code>#include <revolution/wpad.h> 19 20void WPADSetAutoSleepTime( u8 minute ); 21</code></PRE> 22</DL> 23<H2>Arguments</H2> 24<TABLE border="1"> 25 <TBODY> 26 <TR> 27<TD><CODE><b><i>minute</i></b></CODE></TD> 28<TD>Represents the amount of time (in minutes) until the connection is automatically cut if there is no input.</TD> 29 </TR> 30 </TBODY> 31</TABLE> 32<H2>Return Values</H2> 33<P>None.</P> 34 35<H2>Description</H2> 36<p> 37Sets the time to wait before the Wii Console automatically disconnects a Wii Remote that is inactive. To avoid unintentional battery consumption, the connection to the Wii Remote is automatically cut by the Wii Console, if there has been no input from the Wii Remote for a certain 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. 38</p> 39<p> 40The auto-disconnect feature can be disabled by setting <code><i>minute</i></code> to zero. 41</p> 42 43<H2>See Also</H2> 44<p> 45<A href="./toc.html" target="contents"><CODE>WPAD Functions</CODE></A><br> 46</p> 47 48 49<H2>Revision History</H2> 50<p> 5108/15/2005 Initial version. 52</p> 53<hr> 54<P>CONFIDENTIAL</p> 55</BODY> 56</HTML>