PDA

View Full Version : Wiimote Driver for OSX released



wraggster
December 2nd, 2006, 00:21
Cliff posted this news:


I'm working on a virtual HID device driver that derives from IOHIDDevice, but at the moment it's a bit crashy due to L2CAP packets failing somewhat randomly. Here is a userland app that pairs with the device properly. You can look at the normal interrupt packets from the Wii Remote using Apple's Bluetooth PacketLogger.

RVL Enabler (Just press Search in the Device Discovery window and it will find and pair any Wii Remotes that are discoverable)

The secret sauce here is:

[wiiDevice openConnection];
[wiiDevice performSDPQuery:nil];
IOBluetoothL2CAPChannel* cchan;
if ([wiiDevice openL2CAPChannelSync:&cchan withPSM:17 delegate:self] == kIOReturnSuccess)
printf("Control Channel opened.\n");
IOBluetoothL2CAPChannel* ichan;
if ([wiiDevice openL2CAPChannelSync:&ichan withPSM:19 delegate:self] == kIOReturnSuccess)
printf("Interrupt Channel opened\n");

Then you can write with [cchan writeSync:buffer:length]

To read, implement - (void)l2capChannelData:(IOBluetoothL2CAPChannel*)l 2capChannel data:(void *)dataPointer length:(size_t)dataLength;

Basically, I'm implementing Bluetooth HID myself on top of the L2CAP stack.

-Cliff

Download Via Comments

Tortri
December 2nd, 2006, 01:35
OMFG, can't wait to try this ;-D Good Luck with it!

Tortri
December 2nd, 2006, 01:40
Now all we need now is to use the Classic Controller and play some emulators..

Vegetable
December 2nd, 2006, 20:37
Thanks for not giving a source, Wraggster.

First posted here: http://www.wiili.org/forum/osx-wiimote-enabler-t229.html

Xiro
December 3rd, 2006, 01:41
he said "Cliff posted this news"...

DPyro
December 3rd, 2006, 03:36
Windows version here (http://www.wiili.org/forum/download-windows-driver-here-t294.html) ;)