PADSetSamplingCallback

Syntax

#include <revolution/pad.h>

typedef void (* PADSamplingCallback )(void);

PADSamplingCallback PADSetSamplingCallback(PADSamplingCallback callback);

Arguments

callback sampling callback function to to call

Return Values

Pointer to the previous callback function.

Description

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 SISetSamplingRate function. 

Note: 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 PADReset 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.

See Also

SISetSamplingRate, PADReset, SIProbe

Revision History

2006/03/01 Initial version.


CONFIDENTIAL