O'Reilly logo

Raspberry Pi Gaming - Second Edition by Shea Silverman

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

In this chapter, we will go through many of the types of gaming input devices that we can connect to our Raspberry Pi. From fightsticks (or joysticks), gamepads, console controllers, to building your own, there are all sorts of options available.

In this chapter, you will learn how to:

  • Enable Bluetooth connectivity
  • Set up Xbox and PlayStation controllers
  • Use a USB encoder
  • Use the GPIO pins to build your own controller
  • Troubleshoot problem controllers

Controllers on the Raspberry Pi

Before we begin, you will want to install the joystick package to your device. Type sudo apt-get –y install joystick at the command line and press Enter. The joystick package includes an application called jstest, which will help you identify and troubleshoot ...

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