As we all know, Nintendo did not publish its SDK because it was about to sell money!
For amateurs who have no money like me but are interested in wiimoteProgramA viable solution for enthusiasts is to find a third-party library.
Http://wiibrew.org/wiki/wiimote/library# lists many libraries that support wiimoteand C # libraries recommended by Johnny Lee. However, C ++ programmers prefer C/C ++ libraries. I chose WIIC, which is extended by wiiuse. The official homepage is
Http://wiic.sourceforge.net/index.php? N = Main. Homepage
It has only one dynamic library file and can be easily combined with its own program.
The following are simple steps:
First use the svn checkout source code:
SVN Co https://wiic.svn.sourceforge.net/svnroot/wiic <wiic_home>
Then use cmake to generate the makefile. (cmake is a good thing, which is convenient and cross-platform ):
Mkdir build
CD build
Cmake ../src
Make
In this case, after the build is complete, how can we use make install to install the Library to the/usr of the system, but I prefer to put the third-party library in the home directory separately, this is what you like.
WIIC comes with example, which can be tested. Everything on our machine is OK. Press-/+ to turn off (enable) motion perception (I .e. shaking wiimote responds), and nunchuk can also be used, press the up/down key to enable (disable) motion plus. I haven't bought this item yet,
So we can't test it. If there are other keys, let's explore them.