[9780] | 1 | /* |
---|
| 2 | * guitar_hero_3.h |
---|
| 3 | * |
---|
| 4 | * This file is part of WiiC, written by: |
---|
| 5 | * Gabriele Randelli |
---|
| 6 | * Email: randelli@dis.uniroma1.it |
---|
| 7 | * |
---|
| 8 | * Copyright 2010 |
---|
| 9 | * |
---|
| 10 | * This file is based on Wiiuse, written By: |
---|
| 11 | * Michael Laforest < para > |
---|
| 12 | * Email: < thepara (--AT--) g m a i l [--DOT--] com > |
---|
| 13 | * |
---|
| 14 | * Copyright 2006-2007 |
---|
| 15 | * |
---|
| 16 | * This program is free software; you can redistribute it and/or modify |
---|
| 17 | * it under the terms of the GNU General Public License as published by |
---|
| 18 | * the Free Software Foundation; either version 3 of the License, or |
---|
| 19 | * (at your option) any later version. |
---|
| 20 | * |
---|
| 21 | * This program is distributed in the hope that it will be useful, |
---|
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 24 | * GNU General Public License for more details. |
---|
| 25 | * |
---|
| 26 | * You should have received a copy of the GNU General Public License |
---|
| 27 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 28 | * |
---|
| 29 | * $Header$ |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | /** |
---|
| 33 | * @file |
---|
| 34 | * @brief Guitar Hero 3 expansion device. |
---|
| 35 | */ |
---|
| 36 | |
---|
| 37 | #ifndef GUITAR_HERO_3_H_INCLUDED |
---|
| 38 | #define GUITAR_HERO_3_H_INCLUDED |
---|
| 39 | |
---|
| 40 | #include "wiic_internal.h" |
---|
| 41 | |
---|
| 42 | #define GUITAR_HERO_3_JS_MIN_X 0xC5 |
---|
| 43 | #define GUITAR_HERO_3_JS_MAX_X 0xFC |
---|
| 44 | #define GUITAR_HERO_3_JS_CENTER_X 0xE0 |
---|
| 45 | #define GUITAR_HERO_3_JS_MIN_Y 0xC5 |
---|
| 46 | #define GUITAR_HERO_3_JS_MAX_Y 0xFA |
---|
| 47 | #define GUITAR_HERO_3_JS_CENTER_Y 0xE0 |
---|
| 48 | #define GUITAR_HERO_3_WHAMMY_BAR_MIN 0xEF |
---|
| 49 | #define GUITAR_HERO_3_WHAMMY_BAR_MAX 0xFA |
---|
| 50 | |
---|
| 51 | #ifdef __cplusplus |
---|
| 52 | extern "C" { |
---|
| 53 | #endif |
---|
| 54 | |
---|
| 55 | int guitar_hero_3_handshake(struct wiimote_t* wm, struct guitar_hero_3_t* gh3, byte* data, unsigned short len); |
---|
| 56 | |
---|
| 57 | void guitar_hero_3_disconnected(struct guitar_hero_3_t* gh3); |
---|
| 58 | |
---|
| 59 | void guitar_hero_3_event(struct guitar_hero_3_t* gh3, byte* msg); |
---|
| 60 | |
---|
| 61 | #ifdef __cplusplus |
---|
| 62 | } |
---|
| 63 | #endif |
---|
| 64 | |
---|
| 65 | #endif // GUITAR_HERO_3_H_INCLUDED |
---|