Data Structures | |
struct | GH_Buttons |
struct | GH_Pad |
struct | PaddleInfo |
Defines | |
#define | WAIT_CR REG_EXMEMSTAT |
#define | GH_POLL (*(vuint8*)0x0A000000) |
#define | BUTTON_BLUE 8 |
#define | BUTTON_YELLOW 16 |
#define | BUTTON_RED 32 |
#define | BUTTON_GREEN 64 |
#define | UPDATEGHPAD(type, pad) |
#define | PADDLE_LOW (*(vuint8*)0x0A000000) |
#define | PADDLE_HIGH (*(vuint8*)0x0A000001) |
Functions | |
bool | PA_DetectGHPad (void) |
Check to see if there's a Guitar Hero pad inserted in slot-2. Returns 1 if there is or 0 if there isn't. | |
bool | PA_InitGHPad (void) |
Set up the Guitar Hero pad for use. Returns a 1 if initialization was successful, or a 0 if it wasn't. | |
void | PA_DeInitGHPad (void) |
De-initialize the Guitar Hero pad. It's recommended to call this when you won't be using the GH pad anymore. | |
void | PA_UpdateGHPad (void) |
Update the values of GHPad. But NOTE: you won't need it if you used PA_InitGHPad as it's done automatically every Vblank. | |
bool | PA_DetectPaddle (void) |
Check to see if there's a Taito Paddle inserted in slot-2. Return 1 if there is or 0 if there isn't. | |
bool | PA_InitPaddle (void) |
Set up the Taito Paddle for use. Returns a 1 if initialization was successful, or a 0 if it wasn't. | |
void | PA_DeInitPaddle (void) |
De-initialize the Taito Paddle. It's recommended to call this when you won't be using the paddle anymore. | |
void | PA_UpdatePaddle (void) |
Update the values of Paddle. But NOTE: you won't need it if you used PA_InitPaddle as it's done automatically every Vblank. | |
Variables | |
GH_Pad | GHPad |
u16 | GHCompletePad |
u16 | GHExPad |
u16 | GHTempPad |
PaddleInfo | Paddle |
#define BUTTON_BLUE 8 |
#define BUTTON_GREEN 64 |
#define BUTTON_RED 32 |
#define BUTTON_YELLOW 16 |
#define GH_POLL (*(vuint8*)0x0A000000) |
#define PADDLE_HIGH (*(vuint8*)0x0A000001) |
#define PADDLE_LOW (*(vuint8*)0x0A000000) |
#define UPDATEGHPAD | ( | type, | |||
pad | ) |
Value:
type.Green = (pad & BUTTON_GREEN)>>6;\ type.Red = (pad & BUTTON_RED) >> 5;\ type.Yellow = (pad & BUTTON_YELLOW) >> 4;\ type.Blue = (pad & BUTTON_BLUE) >> 3;\ type.Anykey = (!(!((pad&120))));
#define WAIT_CR REG_EXMEMSTAT |
void PA_DeInitGHPad | ( | void | ) |
De-initialize the Guitar Hero pad. It's recommended to call this when you won't be using the GH pad anymore.
void PA_DeInitPaddle | ( | void | ) |
De-initialize the Taito Paddle. It's recommended to call this when you won't be using the paddle anymore.
bool PA_DetectGHPad | ( | void | ) |
Check to see if there's a Guitar Hero pad inserted in slot-2. Returns 1 if there is or 0 if there isn't.
bool PA_DetectPaddle | ( | void | ) |
Check to see if there's a Taito Paddle inserted in slot-2. Return 1 if there is or 0 if there isn't.
bool PA_InitGHPad | ( | void | ) |
Set up the Guitar Hero pad for use. Returns a 1 if initialization was successful, or a 0 if it wasn't.
bool PA_InitPaddle | ( | void | ) |
Set up the Taito Paddle for use. Returns a 1 if initialization was successful, or a 0 if it wasn't.
void PA_UpdateGHPad | ( | void | ) |
Update the values of GHPad. But NOTE: you won't need it if you used PA_InitGHPad as it's done automatically every Vblank.
void PA_UpdatePaddle | ( | void | ) |
Update the values of Paddle. But NOTE: you won't need it if you used PA_InitPaddle as it's done automatically every Vblank.
u16 GHCompletePad |
u16 GHExPad |
u16 GHTempPad |