我正在尝试编写一个 Cocoa 应用程序,它允许我查看我在 Wii 遥控器上按下的按钮。我还希望能够接收双节棍数据并设置 LED。有谁知道我可以从哪里开始?
哦,是的,我进行了一些搜索,但是我找不到任何有用的东西。
提前致谢。
I'm trying to write a Cocoa application which allows me to see what buttons I'm pressing on my Wii Remote. I also want to be able to receive Nunchuck-data and set the LEDs. Does anyone know where I can start?
Oh, yes I did some searches, but I couldn't find anything useful.
Thanks in advance.
发布评论
评论(2)
有一个 开源项目致力于 OS X 中的 Wiimote 支持。他们有一个基于 Cocoa 的项目名为 WiRemoteFramework 的库。
There's an open-source project working on Wiimote support in OS X. They have a Cocoa-based library called WiRemoteFramework.
在 MacBreak Dev 的第 1 集中,他们展示了如何从 Wii 遥控器读取数据并使用它来驱动石英作曲家组成。他们使用来自 WiiMote Control 补丁rel="nofollow noreferrer">Kineme。听起来这个补丁是基于 Chuck 在他的答案中链接到的 darwiin-remote 项目。
这可能会让您对应用程序设计进行快速原型设计,甚至可以在完成后将可用的 Quartz Composer 组合合并到您的 Cocoa 应用程序中。
On episode 1 of MacBreak Dev, they show how to read from the Wii Remote and use it to drive a Quartz Composer composition. They use the WiiMote Control patch for Quartz Composer from Kineme. It sounds like that patch is based on the darwiin-remote project that Chuck links to in his answer.
This might let you do rapid prototyping of your application design, and you could even incorporate a working Quartz Composer composition into your Cocoa application when done.