Current location: Brighton, UK

Playing with a Wiimote in AS3 on OS X

Posted on Tuesday, December 09, 2008 @ 15:51 CET

So I've finally gotten around to playing with using a Wiimote with Flash. I started looking at the WiiFlash project but the server is Windows only and since I'm on a Mac I kept looking and eventually found MoteDaemon.

Now due to security restrictions with the Flash player, all socket servers need policy files and although the source is provided for MoteDaemon I didn't want to mess around with it in Xcode so I just made a quick AIR app that lets you play with it. The MoteDaemon included ActionScript library is AS1, so I ported it to AS3, which you can view source and download here.

To get it up and running:

  1. Download MoteDaemon from SourceForge and install it
  2. Run MoteDaemon and pair your Wiimote
  3. Download, install and run the AIRWii test app. Then click connect.

Now you should be able to see what's going on with the Wiimote. Next step is to do something with this data :)

The AIR app also has the source included for funsies.

- paulo

1
Josh writes:
thanks!

# July 22, 2009 00:50 CET

Post a comment:

You must have Flash and JavaScript enabled to post a comment.