Using GCController with a tvOS simulator

I do not have a new Apple TV, but I am working on a prototype of the game for him using a simulator. Unfortunately, I cannot get GCController to specify Siri remote as an available controller, as tvOS docs indicate. My list of controllers is always 0 elements, even if I call startWirelessControllerDiscoveryWithCompletionHandler().

Does anyone have a suggestion or sample code for entering input from a remote Siri?

+4
source share
2 answers

The current version of the tvOS simulator does not seem to support this functionality. I was able to try my code in another dev set, and it registered the console as a game controller, as expected. At the moment, the answer seems to be "using real hardware" or "waiting for an update for the tvOS simulator".

+4
source

You can take a look at https://github.com/csgulley/AppleTVSimulatorController . This is an implementation of the Game Controller that I wrote for testing using the Apple TV simulator.

+4
source

Source: https://habr.com/ru/post/1608248/


All Articles