How to connect xbox 360 controller

Setting up Xbox Controller on the Pi

If you have ever tried to use an Xbox controller with the Raspberry Pi, you will find very quickly that they do not work correctly right out of the box. In fact to get them working you will be required to install a special driver.

Ultimate Books of Pi

With the newer Xbox One controllers that feature the Bluetooth functionality, you will also find that they will need extra work on top of the driver installation to get them to run. Namely, they are not properly supported by some of the Bluetooth functionality that is switched on by default.

This guide will show you how to get your Xbox Controllers up and running on the Raspbersudo apt-get install jstest /dev/input/js0ry Pi while also walking you through how to get the newer Bluetooth enabled controllers to pair successfully on the Pi.

Controlling your Raspberry Pi with an Xbox controller

If you want to control your Raspberry Pi by using an Xbox Controller, you can just use the following command in terminal. This command allows the Xbox Controller to interact with the computer and will enable it to imitate the mouse.

sudo xboxdrv –detach-kernel-driver –silent –mouse

Once you have run that command, you should now be able to control your mouse on your Raspberry Pi with your Xbox controller. The following buttons are bound to specific mouse actions.

  • A: Left click
  • B: Right-click
  • X: Middle mouse click
  • Y: Enter
  • Left Joystick: Mouse movement
  • Right Joystick: Scroll wheel
  • D-Pad: Arrow keys
  • Start: Forward
  • Back: Back
  • LB: Page up
  • RB: Page down
Related text  How to test for ms

Hopefully, by the end of this guide, you have now got your Raspberry Pi up and running with your Xbox controllers successfully connecting to it. Having this controller will come in handy when it comes to gaming on the Raspberry Pi. If you have any feedback or need assistance with this tutorial feel free to drop a comment on our forums.

Ultimate Books of Pi Bottom

Installing Software

For proper syncing of wireless gaming receiver and Xbox 360 controller, you will have to install the software on PC. Go to the Microsoft hardware website, and then into the Software Downloads section. Click on the Gaming header and then click on the Xbox 360 wireless controller for the Windows link. Choose the version of software compatible with your Windows. Run the installed files when the download is complete.

Connect Xbox 360 Controller to PC

Like this post? Please share to your friends: