xbmc
Functions
guitar_hero_3.c File Reference

Guitar Hero 3 expansion device. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#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

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. More...
 
void guitar_hero_3_disconnected (struct guitar_hero_3_t *gh3)
 The guitar disconnected. More...
 
void guitar_hero_3_event (struct guitar_hero_3_t *gh3, byte *msg)
 Handle guitar event. More...
 

Detailed Description

Guitar Hero 3 expansion device.

Function Documentation

◆ guitar_hero_3_disconnected()

void guitar_hero_3_disconnected ( struct guitar_hero_3_t gh3)

The guitar disconnected.

Parameters
ccA pointer to a classic_ctrl_t structure.

◆ guitar_hero_3_event()

void guitar_hero_3_event ( struct guitar_hero_3_t gh3,
byte *  msg 
)

Handle guitar event.

Parameters
ccA pointer to a classic_ctrl_t structure.
msgThe message specified in the event packet.

◆ guitar_hero_3_handshake()

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
ccA pointer to a classic_ctrl_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.
Returns
Returns 1 if handshake was successful, 0 if not.