Building Your Own Game Controller
To build a full-blown game controller, we only need to add a button to our breadboard. Figure 19, Game controller with accelerometer and pushbutton shows you how to do it. (Please double-check the pin labels on your breakout board!)
That’s how it looks inside a typical modern game controller. We won’t build a fancy housing for the controller, but we still should think about ergonomics for a moment. Our current breadboard solution is rather fragile (see the following figure), and you cannot really wave around the board when it’s connected to the Arduino. ...
Get Arduino: A Quick-Start Guide, 2nd Edition 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.