What is DarwiinRemote?
- DarwiinRemote is a tiny software which reads data from and sends data to Nintendo Wii Remote
- Inputs
- 3-axis acceleration sensors
- all buttons except power button on/off
- Output
- 4 LEDs
- Force Feedback
- DarwiinRemote allows you to control other applications by using Wii Remote
- but now only supports "AppleRemote" mode...
How to use DarwiinRemote
- Launch DarwiinRemote
- Press 1 button and 2 button of your Wii Remote simultaneously
- Wii Remote becomes "discoverable mode" (4 blue LEDs are blinking)
- Log drawer in DarwiinRemote reports "Wii Remote is found!"
- When DarwiinRemote cannot connect to Wii Remote, disconnect bluetooth connection (press power button in seconds) and restart DarwiinRemote (will fix...)
- Have fun!
Download
- DarwiinRemote 0.1a released (6th Dec. 2006)
- endian issue is fixed. now PPC users also playable (thanks Mark and Luke!)
- Icon is added. (thanks truex!)
- Mac OS X 10.4 or later
- Universal Binary
Key mappings
DarwiinRemote now only supports single mouse emulation and "AppleRemote" mode
| Wii Remote | Key mapping |
| Up | Up |
| Down | Down |
| Left | Left |
| Right | Right |
| A | Left-Click |
| B | Return (Play/Pause in FrontRow) |
| Minus | Command + Left (Volume Down in FrontRow) |
| Home | Command + ESC (Enter FrontRow and "Menu" button) |
| Plus | Command + Right (Volume Up in FrontRow) |
| 1 | Page Up |
| 2 | Page Down |
To Do
Icon andUI (help me!)
- Key mapping configuration
- e.g. invoke AppleScript
- Sensor calibration
- IR sensor support
- Extension Port support
- Speaker support (it seems difficult now...)
- Gesture Recognition
- More stable codes ;-)
- QC Custom Patch ;-)
Disclaimer
DarwiinRemote is an UNSTABLE and EXPERIMENTAL software. The author Hiroaki assumes no responsibility whatever for its use by other parties, and makes no guarantees, expressed or implied, about its quality and reliability.
Please play this carefully ;-)
Special Thanks to
- WiiLi.org
- tokkyo (author of WiinRemote)
- Luke and Mark (reporting button bug)
- truex (providing icon)
- of cource Nintendo Wii team
コメント Comment(62)
Great job man! Our Wii blog ( http://miigottawii.com/ ) picked this up along with the other stories about apps coming out of the Wiili work. There's a lot of potential here. Thanks for sharing the source code!
投稿者: Mii Gotta Wii! | 2006年12月06日 03:56
日時: 2006年12月06日 03:56
Hello Mr. Hiroaki. Thank you for DarwiinRemote! I thought you would be interested to know that the key mappings seem to be different for the Japanese Wii Remote and American Wii Remote. The table below shows the results that DarwiinRemote give me when I press the buttons on the Wii Remote.
When I press DarwiinRemote says I pressed
up A
down B
left 2
right 1
1 right
2 left
home down
- +
+ -
A up
B down
投稿者: Luke | 2006年12月06日 05:16
日時: 2006年12月06日 05:16
Very neat, but the key configurations are wrong on a powerbook. Hitting up on the remote shows up as A. Hitting D-Pad left shows 1, D-Pad right shows 2. Could this be an endian issue?
投稿者: Mark | 2006年12月06日 05:44
日時: 2006年12月06日 05:44
Hi Wii and Mac Lovers!
> Mii Gotta Wii!
Your site is great!
I'm grad if other developers release great softwares based on my codes ;-)
> Luke and Mark
Thanks for your information.
You are right. It might be endian issue. As you guessed, my mac has Intel CPU.
Though I've inserted bit-flip code, it doesn't work well. I'll fix the problem soon.
投稿者: Hiroaki | 2006年12月06日 05:53
日時: 2006年12月06日 05:53
Very exciting! I'll be making some Quartz Composer patches too :)
投稿者: Momo The Monster | 2006年12月06日 05:58
日時: 2006年12月06日 05:58
I looked at your code and it looks like you don't need to swap the two bytes you're swapping. Removing your call to CFSwapInt16LittleToHost() in the l2capChannelData method gives proper button-reporting on PPC.
投稿者: Mark | 2006年12月06日 06:09
日時: 2006年12月06日 06:09
Hello Hiroaki!
Thanks for posting this, I don't have access to my wii yet, its at home I head back from college soon.
My question is this:
I understand that its expermental software and buggy, but you said over on the wiili forums that its an application not a driver, so I take it that it does not hook too deep into the OS like a driver would? So if it has issues whats the odds of it hosing a OS X installation?
投稿者: Micrll | 2006年12月06日 06:16
日時: 2006年12月06日 06:16
After taking a look, it doesn't appear that you need to flip the 2-bytes you're swapping. Removing your call to CFSwapInt16LittleToHost() in l2capChannelData gives proper button reporting on PPC
投稿者: Mark | 2006年12月06日 06:21
日時: 2006年12月06日 06:21
Wounderfull tool ...
I made a little icon it's a mix of apple's remote and the wiimote.
www.truex.de/icon.tif
www.truex.de/icon.psd
投稿者: truex | 2006年12月06日 06:32
日時: 2006年12月06日 06:32
Wow, there are many many comments! Thanks all!
and DarwiinRemote 0.1a has been uploaded. enjoy!
> Momo The Monster
o really!
QC is exciting.
I think that some artists might want QCWiimote patch ;-)
> Mark
Thanks again!
I've removed the function and re-build it. (Ver. 0.1a)
and comments in this blog are not appear unless I approve them.
my blog says it but it's in Japanese... sorry.
> Micrll
Hi, Micrll!
right.
DarwiinRemote only uses user space, doesn't use kernel space.
Some guys in the wiili forums want to develop Bluetooth HID driver.
of course there are pros and cons.
pros:
once you install the driver, all applications can access the Wiimote instantly.
cpu-friendly. ;-)
cons:
because the driver modifies OS X kernel, the OS easily hungs up if the driver is immature.
I'm not sure whether writing driver is difficult or not, but I think "non driver based" is enough. implementation is not difficult ;-)
while VLC supports (or will supports) AppleRemote (http://developers.videolan.org/vlc/vlc/doc/doxygen/html/interfaceAppleRemote.html ), it's also "non driver based"
... does that answer you? i'm sorry my english skill is not so good...
> truex
Thanks for your great work!
I wasted little time in adding your icon ;-)
投稿者: Hiroaki | 2006年12月06日 07:31
日時: 2006年12月06日 07:31
Great start guys.
Can you use something like this wireless sensor bar to get full motion working:
http://doctabu.livejournal.com/64758.html
投稿者: TC! | 2006年12月06日 09:08
日時: 2006年12月06日 09:08
Awesome! Keep at it, this is the only site I've found that has any project like this- everyone I've shown is fascinated.
投稿者: Xpect25 | 2006年12月06日 10:39
日時: 2006年12月06日 10:39
The mouse movement is not the way a mouse is supost to move, is not proporcional to position, and when you come back to the same position as you where, it wont come back, so this has to be fixed.
When the mouse is moved left it starts to move, when the mouse comes back to the same position it will stay far from where it started. know what I mean?
thank for the app, good work
投稿者: Carlosdreyfus | 2006年12月06日 11:30
日時: 2006年12月06日 11:30
Nice program. I love it.
Any hope for multimonitor support on the mouse controls? The cursor is stuck on the main monitor.
投稿者: James | 2006年12月06日 11:37
日時: 2006年12月06日 11:37
The mouse movement is not the way a mouse is supost to move, is not proporcional to position, and when you come back to the same position as you where, it wont come back, so this has to be fixed.
When the mouse is moved left it starts to move, when the mouse comes back to the same position it will stay far from where it started. know what I mean?
thank for the app, good work
投稿者: carlos | 2006年12月06日 11:48
日時: 2006年12月06日 11:48
Just a note: I've found that it's more reliable to establish a connection to the remote if you take off the battery cover and hit the red sync button there versus hitting 1+2.
Also, Hiroaki, don't worry about your English skills. You're doing better than a lot of Americans.
投稿者: Chris P. | 2006年12月06日 11:59
日時: 2006年12月06日 11:59
Hiroaki, I totally agree, I personally was wary of going into kernel space with experimental software. Also this implementation is simpler and I can simply quit to turn it off.
Your English is fine, I studied Japanese at my High School and spent 7 weeks in Japan 2 summers ago with a host family. Your English is far better than my Japanese is ...My poor host family I really kill Japanese sentence structure.
Darn I just cant wait to go home next week, school kills me :)
Also its easy enough to resync the wiimote to the wii console after using it with the Mac right?
投稿者: Micrll | 2006年12月06日 13:22
日時: 2006年12月06日 13:22
Any plans to treat the wiimote as an HID device, like a joystick?
投稿者: les | 2006年12月06日 20:10
日時: 2006年12月06日 20:10
Do you have any plans to get this to optionally act like a HID instead of like a mouse? I'd really like to use it as a joystick rather than as a mouse pointer.
投稿者: les | 2006年12月06日 20:13
日時: 2006年12月06日 20:13
Hi all,
Thanks for your comments. I'm grad to read them.
Although I wanna develop new version of this, I have to implement other software today...
OK, it's time to reply your comments!
> TC!
great!
the gadget allows us to use IR sensor of wiimotes independently ;-)
Although I'm not sure whether I can build it, this is good info.
> Xpect25
thanks ;-)
plz show this site more and more.
> Carlosdreyfus, carlos
It's because calibration issue.
ver. 0.1a calibrates sensor data using MY Wiimote...
I have to add custom calibration function.
> James
Thanks for your info.
Right. Now DarwiinRemote only supports single monitor.
I'l fix the problem.
> Chris P.
Thanks for your info.
and... hehe. thanks. anyway I have to improve my command of English ;-)
> les
hmm...
it's an appealing idea. but now I cannot afford to do that...
When I get a spare time, I'll try it.
Thanks!
投稿者: Hiroaki | 2006年12月06日 23:01
日時: 2006年12月06日 23:01
Hi all,
this is also a tiny work, Quartz Composer Custom Patch based on DarwiinRemote codes.
Because of the quality I cannot make it on public, but you can see the movie how it works.
http://blog.hiroaki.jp/2006/12/000434.html
投稿者: Hiroaki | 2006年12月07日 07:46
日時: 2006年12月07日 07:46
thank you so much. i can't repay you.
投稿者: MacUser | 2006年12月07日 09:22
日時: 2006年12月07日 09:22
I doesn't seem to be working for me, when I press the 1 and 2 buttons in my Wiimote I get the message:
WiiRemote is found!
could not connect to the WiiRemote...
I tried checking the console log and the error seems to be: "could not open L2CAP channel ichan"
Any idea of why is it not working for me?
Thanks, keep up the good work
投稿者: neop | 2006年12月07日 11:00
日時: 2006年12月07日 11:00
You can easily make it execute a custom applescript by adding:
NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource: (NSString *)source];
to the relevant button controller,
i.e. for the home button
if ((buttonData & kWiiRemoteHomeButton)){
[homeButton setEnabled:YES];
if (!isPressedHomeButton){
isPressedHomeButton = YES;
CGPostKeyboardEvent((CGCharCode)0, (CGKeyCode)55, true);
CGPostKeyboardEvent((CGCharCode)0, (CGKeyCode)53, true);
NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource: (NSString *)source]
}
You would of course have to specify which applescript you are loading in there.
投稿者: Plantain | 2006年12月07日 13:37
日時: 2006年12月07日 13:37
Hi,
I'm sorry I just speak english and spanish. I'd like to design some icon for you, please contact me :)
投稿者: Carola Clavo | 2006年12月07日 20:27
日時: 2006年12月07日 20:27
Molto si è parlato in queste ultime settimane della capacità interattiva della nuova Nintendo Wii attraverso i suo comandi a distanza pensati per simulazioni sportive e coinvolgenti testa a testa con avversari virtuali ma ora i controller di Wii possono essere d'aiuto anche agli utenti Mac.
Grazie a DarwiinRemote, il software elaborato da un arguto utente giapponese (tra i primi a poter sperimentare la nuova console) è ora possibile utilizzare i controller per attivare FrontRow e accedere a tutte le capacità multimediali del Mac con ricevitore ad infrarossi (in pratica tutti i Mac con Intel e l'ultima versione dell'iMac con G5).
Siamo ancora alla versione 0.1 che prevede la personalizzazione dei tasti ma l'impegno e gli strumenti dello sviluppatore porteranno sicuramente a dei progressi e magari all'utilizzazione estensiva delle "gesture", i comandi impartiti con movimenti nello spazio che rendono più interessante il gioco con la console per cui i controller sono stati realizzati.
Ed ecco qui i tasti sul controller e la corrispondenza ai tasti per i computer Apple
Wii Remote = Mappatura tasti su Mac
Up= Freccia Su
Down = Freccia Giù
Left = Freccia Sinistra
Right= Freccia Destra
A = Click sinistra
B= Return (Play/Pausa in FrontRow)
- = Mela + Left (Volume Down in FrontRow)
Home = Mela + ESC (Fai partire FrontRow e "Menu" button)
+ = Mela + Freccia Destra (Volume Up in FrontRow)
1 = Pagina Su
2 = Pagina Giù
Per utilizzare il software, completamente gratuito occorre Mac OS X 10.4 o superiore e un Mac con PowerPC o Intel...
Per saperne di più visitate la pagina giapponese/inglese di Hiroaki, partendo da questo link.
da http://www.macitynet.it/macity
il sito Mac e iPod più letto in Italia
http://www.macitynet.it/macity/aA26462/index.shtml
投稿者: settimio | 2006年12月07日 21:33
日時: 2006年12月07日 21:33
It becomes more an more famous ...
German Mac Newsmagazine
http://www.mactechnews.de/index.php?id=15166
投稿者: truex | 2006年12月08日 02:41
日時: 2006年12月08日 02:41
Not working on PPC, running OS X 10.3.9.
Application will not open.
投稿者: brian | 2006年12月08日 07:04
日時: 2006年12月08日 07:04
I am having a problem with this program. All of the click functions work perfectly but the tilt sensing doens't.
When the "wiimote is found" the mouse moves to the bottom right corner of the screen. It is very difficult to move the mouse away from that corner.
Any suggestions???
投稿者: David Lee | 2006年12月08日 09:12
日時: 2006年12月08日 09:12
THIS IS !@#$ING AWESOME!!!
thankyou sooo much... btw it works great with neverball. hours and hours of fun =)
thankyou thankyou thankyou!
btw neverball should be here:
http://icculus.org/neverball/
投稿者: error406 | 2006年12月09日 01:29
日時: 2006年12月09日 01:29
Will it be possible to use 2 remotes independently, to make the idea of air drumming (like Bob Somers started) work? Must be possible somehow:
http://www.youtube.com/watch?v=HSs89QB25Tc
投稿者: Florian | 2006年12月09日 19:18
日時: 2006年12月09日 19:18
YOUR ARE GOOD
THIS PRORAME IS VERY GOOD
BUT HI WANT TO DOWNLOOD HIM DO YOUS NO WHERE I CAN
BYE SI YOU
投稿者: BUD | 2006年12月09日 19:26
日時: 2006年12月09日 19:26
I'm sorry for my delay in replying to your comments.
>MacUser
;-)
>neop
Please download newer version.
I think it is little bit more reliable.
>Plantain
Thanks!
right. It is the best way for controlling other appliction to use applescript.
I will implement that feature.
>Carola Clavo
Thanks!
DarwiinRemote Icon now using is given from truex.
If I need more icon or some UI design, I will contact you.
>truex
wow... ;-)
>brian
Please download newer version.
>David Lee
Please download version 0.3. It surpports motion sensors calibration method.
>error406
thats nice!
Thanks for your info!
>Florian
Current version doesn't support 2 or more Wiimote.
Now I'm working on it ;-)
>BUD
Please download from here.
http://sourceforge.net/projects/darwiin-remote
投稿者: Hiroaki | 2006年12月11日 00:05
日時: 2006年12月11日 00:05
I'm trying to use the controller in a game with your library.
I have a lot the following error:
"could not open L2CAP channel ichan"
can you explain what the problem is, when dies happens? thanks for any reply.
t00cg
ps: as soon as i have something to look at, i will put it on the net - but at the moment there are a lot of other problems
投稿者: t00cg | 2006年12月11日 04:35
日時: 2006年12月11日 04:35
merci beaucoup...
domo arigato france
投稿者: patrice | 2006年12月11日 08:25
日時: 2006年12月11日 08:25
>t00cg
current version is little bit more stabled.
Please use newer version.
http://sourceforge.net/project/showfiles.php?group_id=183966
next version will be more stabled :-)
>patrice
Je vous en prie.
Je ne peux pas parler français, pardon...
anyway, I'm grad that many people use our software:-)
投稿者: Hiroaki | 2006年12月12日 13:28
日時: 2006年12月12日 13:28
We sssoooo need a version of that drum software for mac!!!!
投稿者: andym | 2006年12月14日 07:47
日時: 2006年12月14日 07:47
I downloaded this, whenever I try to launch it, it bounces in my dock for a second, then dissapears, and i get the message, "The application DarwiinRemote quit unexpectedly. Mac OS X and other applications are not affected." and stuff, but it won't open. Help me out please.
投稿者: Drew | 2006年12月15日 13:08
日時: 2006年12月15日 13:08
Anyone got the answer to the WIi Mote connection error
===== WiiRemoteDiscovery error (-536870185) =====
to be exact. In older versions i got "WiiRemote is found!
Could not connect."
What's the problem/how do I fix it?
投稿者: Adam | 2006年12月15日 14:00
日時: 2006年12月15日 14:00
i get error:
==WiiRemoteDiscovery error (268435459)==
please help
投稿者: plat00n | 2006年12月22日 05:14
日時: 2006年12月22日 05:14
I'm getting the same error as plat00n.
OS X 10.4.8
投稿者: shadexiii | 2006年12月27日 07:23
日時: 2006年12月27日 07:23
i get the same error as those above, although, i had it working, disconnected, and tied to reconnect, and i get errors.
投稿者: dude | 2006年12月30日 07:38
日時: 2006年12月30日 07:38
I got the same error as plat00n and shadexiii and dude. It was working then i tried to reconnect and that pops up every time. Any ideas?
投稿者: macaholic | 2007年01月02日 14:24
日時: 2007年01月02日 14:24
Classic controller support would be a great addition for those of us that use their mac for games/emulation :)
I love using the Wii remote with DarwiinRemote to play GBA and NES games. Adding support for the classic controller would allow me to play any console game with the remote.
投稿者: qrayg | 2007年01月18日 09:54
日時: 2007年01月18日 09:54
all right i push 1 and 2 and nothing happens is there a way to turn my remote on
投稿者: max | 2007年02月05日 07:50
日時: 2007年02月05日 07:50
hi,
spricht einer von euch Deutsch???
Have a problem with the programm.
Please answer.(auf Deutsch)
Immer wenn ich meine WIImote anschliesse kommt so ein Fehlercode,ich weiss nicht was ich dann machen soll.Der sagt, das er die wiimote gefunden hat, aber er kann sie nicht connecten!?
Thx
投稿者: Djo99 | 2007年02月15日 20:48
日時: 2007年02月15日 20:48
Hi !
I'm on mac 10.3.9, is it possible to use darwiin ?
投稿者: Nicom | 2007年02月15日 21:24
日時: 2007年02月15日 21:24
Hi,
Is it possible to output the motion and button pushes through darwiin remote to an app such as plogue bidule (to be picked up as an HID) or to controller mate to convert to midi? Many thanks, Robin
投稿者: Robin | 2007年02月17日 03:41
日時: 2007年02月17日 03:41
Is there any chance this people is using your wiimote:framework to make money with thei software? please check it
Click Me
If it is so, they should at least provide the code with their implementation of the software!
Let us know what u can find out! I don't like people stealing open software!
投稿者: MacTeo | 2007年02月18日 23:45
日時: 2007年02月18日 23:45
hey, i was wondering if anyone here has used this software to assign parameters on the wiimote to parameters in music software like native instruments or protools. i'm assuming there's some way to route this to ReWire, but i'm not super computer-tastic so i was hoping somebody might be able to help me.
and, as i'm sure many people have already said, this is amazingly impressive! thanks and keep up the good work!
投稿者: emmett | 2007年02月20日 15:06
日時: 2007年02月20日 15:06
Dear Hiroaki,
Thanks so much for your framework. I just wanted to let you know that I'm working on some interactive video and synthesized music using cocoa and the WiiRemote Framework.
I still have some trouble with getting a stable connection - do you have any tips for retrying the WiiRemoteDiscovery object?
If all goes well and as planned, there will be a performance for wiiremote, cello, and computer synth/video on March 25th, evening at ZAIM in Yokohama, (a building next to the baseball stadium in Kannai)
Djo99:
Können sie das Fehlercode auf English schreiben? Haben sie OS X 10.4? (Sie müssen das haben)
投稿者: Takezo | 2007年02月21日 23:10
日時: 2007年02月21日 23:10
Just wanted to say thanks i'm using the wiimote instead of the apple remote to control frontrow.
I really appreciate the work you've done on this.
投稿者: maxtoo | 2007年02月23日 03:03
日時: 2007年02月23日 03:03