O'Reilly logo

Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices by Ken Maskrey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Adding the Game Controller

Once again, it's time to break new ground. Previously, I've talked about the new frameworks for connecting iPhone OS accessories and you've even developed a test program for your game controller. In the last chapter, you created a simple Pong game that you're now about to modify to use external hardware.

The Game Controller Test Program

Let's talk a little bit about the test program you created when you were developing your game controller. The program consisted of four major sections: the application delegate, the root view controller, the primary view controller, and the actual controller object.

The application delegate performed the simplest of functions in the world of delegates. It merely launched the navigation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required