// *********************************************************************************** // Pad reading definitions // *********************************************************************************** // **** function prototypes for joypad reading void PadInit(void); u_long Pad1Read(void); u_long Pad2Read(void); // **** definitions for easy access to user input #define PADselect (1<< 8) // select pressed #define PADstart (1<<11) // start pressed #define PADup (1<<12) // joypad moved up #define PADdown (1<<14) // joypad moved down #define PADleft (1<<15) // joypad moved left #define PADright (1<<13) // joypad moved right #define PADtriangle (1<< 4) // triangle pressed #define PADcross (1<< 6) // cross pressed #define PADsquare (1<< 7) // square pressed #define PADcircle (1<< 5) // circle pressed #define PADL1 (1<< 2) // top left rear button pressed #define PADR1 (1<< 3) // top right rear button pressed #define PADL2 (1<< 0) // bottom left rear button pressed #define PADR2 (1<< 1) // bottom right rear button pressed