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>PADSetSamplingCallback</TITLE> 9</HEAD> 10<BODY> 11<H1>PADSetSamplingCallback</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/pad.h> 16 17typedef void (* PADSamplingCallback )(void); 18 19PADSamplingCallback PADSetSamplingCallback(PADSamplingCallback callback); 20</pre></dd></dl> 21 22<H2>Arguments</H2> 23<TABLE class="arguments" border="1" > 24 <TBODY> 25 <TR> 26<TH>callback</TH> 27<TD>sampling callback function to to call</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31 32<H2>Return Values</H2> 33<P>Pointer to the previous callback function.</P> 34 35<H2>Description</H2> 36<P>This function registers the PAD sampling callback. The specified callback function is called every time Hollywood completes sampling of the Controller data at the rate specified by the <A href="../si/SISetSamplingRate.html"><CODE>SISetSamplingRate</CODE></A> function. </P> 37<P><STRONG>Note:</STRONG> The specified callback is called only when at least one GameCube Controller has been plugged into the system. Usually, this callback is called after the next vertical retrace interrupt. Ensure that your program does not call the <A href="PADReset.html"><CODE>PADReset</CODE></A> function more than once before the callback is called or before the controller is removed from the Controller Socket. If called, the controller initialization process will not complete.</P> 38 39<H2>See Also</H2> 40<P class="reference"> 41<A href="../si/SISetSamplingRate.html">SISetSamplingRate</A>, 42<A href="PADReset.html">PADReset</A>, 43<A href="../si/SIProbe.html">SIProbe</A> 44</P> 45 46<H2>Revision History</H2> 47<P> 482006/03/01 Initial version.<br> 49</p> 50 51<hr><p>CONFIDENTIAL</p></body> 52</HTML>