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 8. Improving the Design

Now that you have a working game that uses your accessory controller, it's time to make some changes. While the game itself could use a lot of work, I will focus on the interface to the game controller and improving performance and security of the system.

Performance Concerns

Let's look at Figure 8-1 to review what goes on when you turn the knob and send a new position to the game.

Data movement through the game

Figure 8-1. Data movement through the game

The game controller generates a byte of data representing the position of the knob that you want to translate into the position of the paddle. From the processor residing on the game controller, you ...

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