|
JWiimote
#JWiimote - Wii Remote API in Java IntroductionJWiimote is a Java library to communicate with a Wiimote, the remote controller of Wii. Currently JWiimote supports Windows. Other platforms might be added in the future. JWiimote uses a HID device, so that it does not require any specific bluetooth stack. It works with your default bluetooth software. (e.g. BlueSoleil) DetailsJWiimote for Windows consists of two parts:
JWiimote for Windows is currently developed in this environment:
How to UsePrerequisite: WindowsXP, Cygwin + GCC, working bluetooth stack such as BlueSoleil 1. Download JWiimote source codes here. It's basically an Eclipse Java project with C libraries. 2. Now bash the directory. 3. Make a symbolic link to your JDK directory. $ ln -s "/cygdrive/c/Program Files/Java/jdk1.6.0_02/" 4. Modify gccdll.sh according to the name of your symbolic link. 5. Compile the DLL. You already have it in the source codes but you'll probably need to do it by yourself in the end. $ ./gccdll.sh Test" 6. You may import the whole folder to Eclipse workspace for convenience. 7. Run Test.java as a Java application. You'll see the list of HID devices on your console. As you can see, only the basic functions are implemented here. Due to my daily hectic life, I couldn't manage to polish this library enough. But I guess it can at least give a clue or starting point. Hope this help with your cool hacking! |