Fluxus
From Interactivity
You can find some of my fluxus ramblings here.
Wiiremote module and example
I've developed a module for handling wiiremote data via OSC. I use a custom app that connects to the wii remote and sends out all the buttons, tilt, and ir information via OSC.
The OSC messages are formatted as /wiiremote/INDEX/FIELD VALUE
If the field is a button, it sends a 1 (pressed) or 0 (not pressed). From that, the fluxus library takes care of figuring out if a button is held, released, not pressed, or pressed.
For example, the first wiiremote (there are up to 4) sends out X tilt data from its accelerometer like so:
/wiiremote/1/tiltX 0.11111
/wiiremote/1/one 0
the second remote would send out OSC like:
/wiiremote/2/B 0
Possible FIELDS are:
- tiltX
- tiltY
- tiltZ
- angleX (this is a special angle that wraps around 360 degrees from my software)
- angleY (this is a special angle that wraps around 360 degrees from my software)
- angleZ (this is a special angle that wraps around 360 degrees from my software)
- A
- B
- C
- Z
- one
- two
- up
- down
- left
- right
- plus
- home
- minus
Note:
You might ask, "where can I get this custom software?" The answer is, if you're on OS X I may be able to send it to you, but you're probably better off using OSCulator or some other programmable wiiremote-to-OSC program of your choice. You can try http://www.wiili.org/index.php/Wiimote or the other wii hacking sites. I would like to write a better app using Objective C and the Wiiremote Framework for OS X, but I haven't had the time so far. If you do, I'd like to hear about it!
Here are the files:
