#include <revolution/pad.h> typedef void (* PADSamplingCallback )(void); PADSamplingCallback PADSetSamplingCallback(PADSamplingCallback callback);
| callback | sampling callback function to to call |
|---|
Pointer to the previous callback function.
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.
SISetSamplingRate, PADReset, SIProbe
2006/03/01 Initial version.
CONFIDENTIAL