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

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.