guitar_hero_3.h 1.7 KB

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