nunchuk.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 Nunchuk expansion device.
  31. */
  32. #ifndef NUNCHUK_H_INCLUDED
  33. #define NUNCHUK_H_INCLUDED
  34. #include "wiiuse_internal.h"
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. /** @defgroup internal_nunchuk Internal: Nunchuk */
  39. /** @{ */
  40. int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, unsigned short len);
  41. void nunchuk_disconnected(struct nunchuk_t* nc);
  42. void nunchuk_event(struct nunchuk_t* nc, byte* msg);
  43. void nunchuk_pressed_buttons(struct nunchuk_t* nc, byte now);
  44. /** @} */
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif /* NUNCHUK_H_INCLUDED */