My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
JWiimote  
Updated Feb 4, 2010 by seomi...@gmail.com

#JWiimote - Wii Remote API in Java

Introduction

JWiimote 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)

Details

JWiimote for Windows consists of two parts:

  • C driver, using HID APIs and following JNI format
  • Java library, using JNI to connect the C driver

JWiimote for Windows is currently developed in this environment:

  • Wiimote + bluetooth dongle (supported by BlueSoleil 1.4.9.5)
  • WindowsXP SP2
  • JDK 1.5.0
  • Cygwin + GCC

How to Use

Prerequisite: 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!


Sign in to add a comment
Powered by Google Project Hosting