开发者

Control iPad with other iOS device

I am working on an app for the iPad and would like to be able to include the option to use a separate iOS device to control it. I have seen examples of this with games (notably Chopper 2), but have no idea how it is done.

Can anyone point me in the direction of the iOS frameworks that back this feature? I have looked through the SDK but cannot find 开发者_JAVA技巧the relevant sections.

Thanks


Im sure they use Game Kit or you could use the lower level Bonjour discovery.

Read through the GameKit docs.

You can start there. I guess the controller is actually a separate feature of the app that just sends messages over the network, using sockets to send and receive the data.

Send over the network from the controller. Receive them on the ipad in a running thread or however the service you use handles it. process the received messages.


Agreed with @alJaree. I'm working on something similar, though I've found it much easier to implement through Unity. Prime31 has a number of sweet plugins that allow you to implement things like Bluetooth through gamekit in a single line of code. I'm on my ipad right now so I cant be sure of the exact URL, but I think it's just prime31.com, in their 'unity' section.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜