2008 Jan 24, 9:45
Interesting thoughts on using accelerometer info.
2007 Jun 7, 5:29
The other day I had the best idea for my Wii remote. Clearly I should use it to control the rotation of Tetris pieces in my N-dimensional
Tetris game Polytope Tetris
. One of the issues I described with Polytope Tetris
is user input. Given a Wii remote the
user could rotate a piece through 3 dimensions in a manner that's much easier to adjust to than particular keys on the keyboard.
Anyway, I did a little research
into how this might work. I knew that the Wii remote used infrared for absolute positioning and
Bluetooth for everything else (LEDs, speaker, accels.) I bought a Bluetooth adapter
for my PC after realizing that none of my
computers had one already. I used GlovePIE
to ensure that my Wii remote could connect and successfully communicate with my computer.
GlovePIE is actually pretty cool -- it provides a simple script layer over the Wii remote to control things like your mouse.
Since Polytope Tetris is in Java I looked for and found a Java library for operating with the Wii remote
and a long forum thread discussing its use
. I then read up on Bluetooth in Java
. Apparently JSR 82 is the name of the standard that describes the API a Bluetooth stack should expose
in Java. That is, to get Bluetooth working in Java one needs an additional package for Java that actually implements the Bluetooth Java API. This package would depend on the system so I suppose I
can't fault Sun for not including it... Where to find such a package? I found a comparison list of implementations
and tried the ones
that support javax.bluetooth. None of them
worked for me because none can address USB devices it seems or they cost money and I couldn't get the trial version working. I also tried
(not listed on the previous list) which seemed promising and could produce an address for my Wii remote as a connected device but couldn't use
And I thought that after I found the Wii remote Java library it would be easy... Oh well...
2007 May 20, 2:39
GlovePIE provides a simple scripting interface to Wii remotes. It also comes with a bunch of premade scripts for example wiimote accel. controls the mouse.
2007 May 11, 1:47
A long thread between the guy making the WiiRemoteJ library and people testing it and using it. Some stuff in there about setting up Java with Bluetooth support for Win & Mac.
2007 May 11, 1:44
Comparisons of features and prices of Java bluetooth libraries.
2007 May 11, 1:11
Review of a USB Bluetooth adapter. Several reviews claim that it works with Wii remote.
2007 May 11, 12:58
Download Java bluetooth stacks
2007 May 11, 12:51
Tutorial on programming Java apps using bluetooth.
2007 May 11, 12:38
Sun's introduction to bluetooth.
2007 May 11, 12:17
Java API for using USB devices. May be possible to use JavaBluetooth with USB Bluetooth dongle if also using jUSB.
2007 May 11, 12:02
Java API for communicating with bluetooth devices.
2007 May 10, 11:59
Java library for using the Wii remote.