I am looking for some sample code that would allow an app on iOS to function as a game controller for an app running on OS X (and in future tvOS or another iOS device such as the iPadPro). The controller needs to support the following: - connecting to the game - selecting and controlling a vehicle via custom buttons in the controller app - displaying status information of the selected vehicle, such as fuel, speed, etc.
Any pointers to sample code and/or recommended API's that should be used would be welcome.
EDIT:
I found this sample app from Apple which will probably do the job. Any better options out there? https://developer.apple.com/library/ios/samplecode/WiTap/Introduction/Intro.html
I have posted a DTS request so will update this when I get an answer
EDIT: FYI: Apps approved by Apple but be sure to include a note to the reviewer explaining the need for network server services in the entitlements.