What is the best and easiest way to connect an iPhone as a controller in tvOS?

When you look at the keynotes with the crossroads and beats sports demo they connect different players using iPhones, iPods and Game Controllers. Does anyone have an idea how they were able to do so?

Replies

I guess they were using GameCenter APIs.

If you want only up to 3 controllers (1 Remote, 2 iPhones), you can use CoreBluetooth.

If you need more, take a look at Bonjour.


http://stackoverflow.com/questions/32513901/use-iphone-as-a-game-controller-in-a-tvos-app


https://forums.developer.apple.com/thread/18751

I've developed an open-source framework that is designed to make it easy to create an iOS-based game controller that appears as a hardware-based controller: https://github.com/robreuss/VirtualGameController