#include "wiiuse_internal.h"
Defines |
|
| #define | GUITAR_HERO_3_JS_MIN_X 0xC5 |
| #define | GUITAR_HERO_3_JS_MAX_X 0xFC |
| #define | GUITAR_HERO_3_JS_CENTER_X 0xE0 |
| #define | GUITAR_HERO_3_JS_MIN_Y 0xC5 |
| #define | GUITAR_HERO_3_JS_MAX_Y 0xFA |
| #define | GUITAR_HERO_3_JS_CENTER_Y 0xE0 |
| #define | GUITAR_HERO_3_WHAMMY_BAR_MIN 0xEF |
| #define | GUITAR_HERO_3_WHAMMY_BAR_MAX 0xFA |
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. |
|
| 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. |
|
| void guitar_hero_3_disconnected | ( | struct guitar_hero_3_t * | gh3 | ) |
The guitar disconnected.
| 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.
| 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.
| 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. |
1.5.4