include/nds/arm9/PA_KeysSpecial.h File Reference

Support for special DS controllers. More...

#include "PA9.h"

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


Detailed Description

Support for special DS controllers.

Macros, variables, and prototypes needed for DS controller accessory (Guitar Hero Grip, Taito Paddle, ...) support.


Generated on Sat Jun 13 12:55:13 2009 for PAlib - Programmer's Arsenal by  doxygen 1.5.8