#include <revolution/pad.h> #define PAD_CHAN0_BIT 0x80000000 #define PAD_CHAN1_BIT 0x40000000 #define PAD_CHAN2_BIT 0x20000000 #define PAD_CHAN3_BIT 0x10000000 u32 PADRead(PADStatus* status);
| status | Array [PAD_MAX_CONTROLLERS] of PADStatus to be filled in. Each err member will hold PAD_ERR_NONE if the pad status is valid. Otherwise it holds another error status. If PADRead is called at a rate faster than the rate specified by SISetSamplingRate, then only the first PADRead will return valid input values. The following calls to PADRead return PAD_ERR_TRANSFER until the next period. |
|---|
An OR-ed bit mask (PAD_CHANn_BIT) of the controllers that support rumble motors.
Checks the state of controllers. The PADRead function gets an array of four pieces of PADStatus data to be used to read in the controller states. This function gets the state of all the pads at once.
PADButtonDown, PADButtonUp, PADClamp, PADInit, PADStatus
2006/03/01 Initial version.
CONFIDENTIAL