Unsupported — We cannot guarantee that this software will work properly on Mac OS 10.8 and above. Please be careful.

Release: WiiMote Control, v20071201

Release Type: Beta
Version: 20071201
Release Notes

I've apparently fixed the connectivity issues that would crash the WiiMote Control patch. I'm not sure how stable it is, and there are a number of things I still need to fix (nunchuk support, better IR support, atan2 [harder than I initially thought], etc) before a production public release. But for you early adopters, this might be useful :)

PreviewAttachmentSize
GLSLWiiPot.jpg
GLSLWiiPot.jpg60.36 KB
WiiMoteControlPatch-20071201.zip45.27 KB

cwright's picture
Some Caveats

Once the patch is enabled, it'll start searching for a wiimote to communicate with. If it doesn't find one after a brief timeout (10-20 seconds?), it gives up, and doesn't restart (restarting the search is a bit trickier than expected), so it'll never connect after this brief window. I'm working on this, don't worry.

recreating the patch may or may not work? (It looks like it did at least once for me).

franz's picture
thxx so much

thank you so much Chris, i'll dive into this. Hope you'll manage to implement the IR part too !

btw, is there a way to bundle your plugin into one's custom app ? (hence avoiding to manual install the plugin)

cwright's picture
No prob

(I'd wait for today's wiimote beta, it's super :)

yes, we've solved the bundled plugin-loading for both Tiger and Leopard.

[QCPatch loadPluginAtPath:{my plugin path}] (or something to that effect) before any QC code, and you're good to go. It's documented wherever you asked this earlier (in Tiger, I think).

franz's picture
main.h

does this statement goes into the main.h ? (i don't really see where else it could go.../ sorry for my total lack of objC knowledge)

cwright's picture
depends

That depends on how your app is coded. Most Cocoa apps will have a class called "AppController" or something, which will have a method like this:

- (void) applicationWillFinishLaunching:(NSNotification*)notification

You'll want to put it in there (this is executed whenever the application is launched). Putting it in main.h will probably not compile, and if it does, it almost certainly won't do what you're expecting it to :)

For reference, here's how I did it in one of my recent Tiger/Leopard projects:

[QCPatch loadPlugInsInFolder:pluginPath];

That'll load all the plugins found at pluginPath, which is an NSString.

Installation Instructions

Place the plugin file in
/Users/[you]/Library/Graphics/Quartz Composer Patches/
(Create the folder if it doesn't already exist.)