motion_plus.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * wiiuse
  3. *
  4. * Written By:
  5. * Michal Wiedenbauer < shagkur >
  6. * Dave Murphy < WinterMute >
  7. * Hector Martin < marcan >
  8. * Radu Andries <admiral0>
  9. *
  10. * Copyright 2009
  11. *
  12. * This file is part of wiiuse and fWIIne.
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation; either version 3 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  26. *
  27. * $Header$
  28. *
  29. */
  30. /**
  31. * @file
  32. * @brief Motion plus extension
  33. */
  34. #ifndef MOTION_PLUS_H_INCLUDED
  35. #define MOTION_PLUS_H_INCLUDED
  36. #include "wiiuse_internal.h"
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. /** @defgroup internal_mp Internal: MotionPlus */
  41. /** @{ */
  42. void motion_plus_disconnected(struct motion_plus_t* mp);
  43. void motion_plus_event(struct motion_plus_t* mp, int exp_type, byte* msg);
  44. void wiiuse_motion_plus_handshake(struct wiimote_t *wm, byte *data, unsigned short len);
  45. void wiiuse_probe_motion_plus(struct wiimote_t *wm);
  46. /** @} */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif