<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 <div><br class="webkit-block-placeholder"></div><div>It turns out it's not an easy thing.  In order to poll the wiimote you need to use a Carbon CFRunLoop.  Since Max/MSP is a Carbon app natively, the aka.wiiremote object can just tag onto the built-in CFRunLoop to get events.  Pd's Tcl/Tk process is a Carbon app, but that's a separate process from 'pd'.  </div><div><br class="webkit-block-placeholder"></div><div>So after a fair amount of discussion with Apple engineers, it seems that the only solution is to make a totally separate process (yes a process, not just a thread) which runs the CFRunLoop to poll the wiiremote.  Then the Pd object will poll that process to get data from it.  This is not simple, but doable, hence the delay.</div><div><br class="webkit-block-placeholder"></div><div>If only Nintendo had just made it a proper HID device, then it would 'just work' with [hid].  But they did something quite stupid, they make it show up as if it was a proper HID device, but then it sends custom, non-HID data packets.  So the OS sees it as a HID device and associates with it, but then can't understand the data from it.  That leaves the IOBluetooth API as  only option, which is tied to Carbon CFRunLoops.</div><div><br class="webkit-block-placeholder"></div><div>The best solution would be if someone wrote a driver for it that translated the custom data packets into HID, then it would 'just work' with [hid].  Unfortunately, I am not a driver guy...</div><div><br class="webkit-block-placeholder"></div><div>For now, this looks like a good option for using the wiiremote with Pd on Mac OS X:</div><div><a href="http://code.google.com/p/darwiinosc/">http://code.google.com/p/darwiinosc/</a></div><div><br class="webkit-block-placeholder"></div><div>.hc</div><br><div><div>On Mar 21, 2008, at 8:44 AM, Luigi Rensinghoff wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote><br></div><div><br class="webkit-block-placeholder"></div><div>How is the Progress with the wiiremote external ??? (especially Mac-Intel)</div><div><br class="webkit-block-placeholder"></div><div>I have played around with OSculator and its really working fine.</div><div><br class="webkit-block-placeholder"></div><div>Anybody else playing around with the Wii ???</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Happy Easter</div><div><br class="webkit-block-placeholder"></div><div>Luigi</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div>&gt;---------------------------------------&lt;</div><div><br class="webkit-block-placeholder"></div><div>Luigi Rensinghoff</div><div><a href="mailto:luigi.rensinghoff@freenet.de">luigi.rensinghoff@freenet.de</a></div><div><a href="skype:gigischinke">skype:gigischinke</a></div><div><a href="ichat:gigicarlo">ichat:gigicarlo</a></div><div><br></div></div></span></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br style="font-family: Tahoma; "></div><div>----------------------------------------------------------------------------<br style="font-family: Tahoma; "></div><div><br class="khtml-block-placeholder"></div><div>Man has survived hitherto because he was too ignorant to know how to realize his wishes.  Now that he can realize them, he must either change them, or perish.    -William Carlos Williams</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>