src/guitar_hero_3.c File Reference

Guitar Hero 3 expansion device. More...

#include
#include
#include
#include "definitions.h"
#include "wiiuse_internal.h"
#include "dynamics.h"
#include "events.h"
#include "guitar_hero_3.h"

Include dependency graph for guitar_hero_3.c:


Functions

static void  guitar_hero_3_pressed_buttons (struct guitar_hero_3_t *gh3, short now)
  Find what buttons are pressed.
int  guitar_hero_3_handshake (struct wiimote_t *wm, struct guitar_hero_3_t *gh3, byte *data, unsigned short len)
  Handle the handshake data from the guitar.
void  guitar_hero_3_disconnected (struct guitar_hero_3_t *gh3)
  The guitar disconnected.
void  guitar_hero_3_event (struct guitar_hero_3_t *gh3, byte *msg)
  Handle guitar event.

Detailed Description

Guitar Hero 3 expansion device.


Function Documentation

void guitar_hero_3_disconnected ( struct guitar_hero_3_t gh3  ) 

The guitar disconnected.

Parameters:
cc  A pointer to a classic_ctrl_t structure.

void guitar_hero_3_event ( struct guitar_hero_3_t gh3,
byte *  msg  
)

Handle guitar event.

Parameters:
cc  A pointer to a classic_ctrl_t structure.
msg  The message specified in the event packet.

int guitar_hero_3_handshake ( struct wiimote_t wm,
struct guitar_hero_3_t gh3,
byte *  data,
unsigned short  len  
)

Handle the handshake data from the guitar.

Parameters:
cc  A pointer to a classic_ctrl_t structure.
data  The data read in from the device.
len  The length of the data block, in bytes.
Returns:
Returns 1 if handshake was successful, 0 if not.

static void guitar_hero_3_pressed_buttons ( struct guitar_hero_3_t gh3,
short  now  
) [static]

Find what buttons are pressed.

Parameters:
cc  A pointer to a classic_ctrl_t structure.
msg  The message byte specified in the event packet.


Generated on Wed Apr 2 19:30:09 2008 for wiiuse by  doxygen 1.5.4