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 ...

Get Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.