events.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Handles wiimote events.
  31. *
  32. * The file includes functions that handle the events
  33. * that are sent from the wiimote to us.
  34. */
  35. #ifndef EVENTS_H_INCLUDED
  36. #define EVENTS_H_INCLUDED
  37. #if defined(_MSC_VER)
  38. /* MS compilers of pre-VC2010 versions don't have stdint.h
  39. * and I can't get VC2010's stdint.h to compile nicely in
  40. * WiiUse
  41. */
  42. #include "wiiuse_msvcstdint.h"
  43. #else
  44. #include <stdint.h>
  45. #endif
  46. /** @defgroup internal_events Internal: Event Utilities */
  47. /** @{ */
  48. void wiiuse_pressed_buttons(struct wiimote_t* wm, byte* msg);
  49. void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len);
  50. void disable_expansion(struct wiimote_t* wm);
  51. void propagate_event(struct wiimote_t* wm, byte event, byte* msg);
  52. void idle_cycle(struct wiimote_t* wm);
  53. void clear_dirty_reads(struct wiimote_t* wm);
  54. /** @} */
  55. #endif /* EVENTS_H_INCLUDED */