Wiimote for C++

Wiimote for C++ is a developer library on WIN32 platforms. I would like to release the library for any platforms such as Linux and !MacOSX finally, but I have released it only for WIN32 platforms at the first release.

wiimote-demo.jpg

Repositories

Examples

The package includes the most simple sample which outputs data of a Wiimore to the standard console. The main source code is the following.

#include <stdio.h>
#include <cybergarage/wii/Wiimote.h>

using namespace CyberGarage;

int main( int argc, char *argv[] )
{
 Wiimote *wiimote;
 wiimote = new Wiimote();
 if (wiimote->open() == false) {
  delete wiimote;
  printf(";Could not find Wiimote !!";);
  return 0;
 }
 do {
  wiimote->read();
  printf(";r%+d %+d %+d %s %s %s %s %s %s %s %s %s %s %s";,
   (wiimote->getXMotion()-0x80),
   (wiimote->getYMotion()-0x80),
   (wiimote->getZMotion()-0x80),
   (wiimote->IsAPressed() ? ";A"; : "; ";),
   (wiimote->IsBPressed() ? ";B"; : "; ";),
   (wiimote->IsOnePressed() ? ";1"; : "; ";),
   (wiimote->IsTwoPressed() ? ";2"; : "; ";),
   (wiimote->IsUpPressed() ? ";U"; : "; ";),
   (wiimote->IsDownPressed() ? ";D"; : "; ";),
   (wiimote->IsLeftPressed() ? ";L"; : "; ";),
   (wiimote->IsRightPressed() ? ";R"; : "; ";),
   (wiimote->IsMinusPressed() ? ";-"; : "; ";),
   (wiimote->IsPlusPressed() ? ";+"; : "; ";),
   (wiimote->IsHomePressed() ? ";H"; : "; ";)
   );
  Sleep(100);
 } while (wiimote->IsHomePressed() == false);
 wiimote->close();
 delete wiimote;
 return 0;
}

104 thoughts on “Wiimote for C++

  1. Pingback: Beverly Bultron

  2. Pingback: MILF Porn

  3. Pingback: Cory Chase

  4. Pingback: Lila Lovely

  5. Pingback: domain-broker

  6. Pingback: Pay for Assignments

  7. Pingback: Academic Assignment Help

  8. Pingback: Assignment writer

  9. Pingback: personalized housewarming

  10. Pingback: foot lotion

  11. Pingback: valentine gift

  12. Pingback: Click Here

  13. Pingback: Click Here

  14. Pingback: Click Here

  15. Pingback: Click Here

  16. Pingback: Click Here

  17. Pingback: Click Here

  18. Pingback: Click Here

  19. Pingback: Click Here

  20. Pingback: Click Here

  21. Pingback: Click Here

  22. Pingback: Click Here

  23. Pingback: Click Here

  24. Pingback: Click Here

  25. Pingback: Click Here

  26. Pingback: Click Here

  27. Pingback: Click Here

  28. Pingback: Click Here

  29. Pingback: Click Here

  30. Pingback: Click Here

  31. Pingback: Click Here

  32. Pingback: Click Here

  33. Pingback: Click Here

  34. Pingback: Click Here

  35. Pingback: Click Here

  36. Pingback: moveit studio

  37. Pingback: Space ROS

  38. Pingback: no code robotics

  39. Pingback: Click Here

  40. Pingback: Click Here

  41. Pingback: Reputation Defenders

  42. Pingback: Reputation Defenders

  43. Pingback: Click Here

  44. Pingback: Click Here

  45. Pingback: Click Here

  46. Pingback: Reputation Defenders

  47. Pingback: Click Here

  48. Pingback: Click Here

  49. Pingback: Click Here

  50. Pingback: Click Here

  51. Pingback: Click Here

  52. Pingback: Click Here

  53. Pingback: Click Here

  54. Pingback: Click Here

  55. Pingback: Click Here

  56. Pingback: Click Here

  57. Pingback: Click Here

  58. Pingback: Click Here

  59. Pingback: Click Here

  60. Pingback: Click Here

  61. Pingback: Click Here

  62. Pingback: grand rapids dentist

  63. Pingback: grand rapids same day crowns

  64. Pingback: grand rapids teeth whitening

  65. Pingback: Click Here

  66. Pingback: Click Here

  67. Pingback: Click Here

  68. Pingback: https://gquery.org/

  69. Pingback: Click Here

  70. Pingback: Click Here

  71. Pingback: Click Here

  72. Pingback: Click Here

  73. Pingback: Click Here

  74. Pingback: Click Here

  75. Pingback: Click Here

  76. Pingback: Click Here

  77. Pingback: Click Here

  78. Pingback: Click Here

  79. Pingback: make money online

  80. Pingback: Click Here

  81. Pingback: Click Here

  82. Pingback: Click Here

  83. Pingback: Click Here

  84. Pingback: Click Here

  85. Pingback: Click Here

  86. Pingback: Click Here

  87. Pingback: Click Here

  88. Pingback: Click Here

  89. Pingback: Click Here

  90. Pingback: Click Here

  91. Pingback: Click Here

  92. Pingback: 카지노 게임 플레이

  93. Pingback: domain-portfolio

  94. Pingback: premium-domain-names

  95. Pingback: where can i buy cardano coins

  96. Pingback: how to choose a cardano stake pool

  97. Pingback: limited company setup

  98. Pingback: Google reviews

  99. Pingback: Pornography Australia

  100. Pingback: reputation defenders

  101. Pingback: 2023 Books

  102. Pingback: burial

  103. Pingback: tombstones

  104. Pingback: IRA Empire