Last Updated August 8, 2009
Download: Compressed with YUI Compressor Uncompressed
For those of you unfamiliar with the original: This is a library to assist your JavaScript code in getting information from Wii Remotes when your Web page is accessed from Wii's Internet Channel. You could just access opera.wiiremote manually, but this library gives you a few handy extras such as automatically setting up your script to accept input from the keyboard when your page is accessed from a PC, optionally preventing the default actions of the remote buttons, and numerous other nice things. It's a port of a similar library used in WiiCade's Flash games. Have a look at the official docs to see what it can do.
Pikadude No. 1's Modified version of the library includes these changes:
There are also some bug fixes, although I can't take credit for them. WiiCade, for who knows what reason, has made two versions of the library available. The easier-to-find version is available from WiiCade Labs, and it's also the older, buggier version. The Modified library is based on the newer version, which includes these changes:
You can use this just like you'd use any JavaScript library - just plop a URL to where you've uploaded the file in a <script src> tag. The official download from WiiCade Labs may lead you to believe that the files game.html, Utilities.js, and main.js are necessary, but that will only be so if you're making a game that is to be submitted to WiiCade, in which case you can't use the Modified API anyways. Figure out what to do from your JavaScript code by reading the official docs, but if you're going to use KeyboardController, much of the information on keydown/keyup events from JavaScript Madness: Keyboard Events will also apply.
Both the Modified and official versions of the API suffer from some limitations not mentioned in the docs:
Between the Modified WiiCade JavaScript API and jQuery, you should be able to easily craft some incredible JavaScript games (by the way, be aware that jQuery's fade effects don't work on the Wii). Good luck and have fun!
Download: Compressed with YUI Compressor Uncompressed