Skip to content Skip to sidebar Skip to footer

Read Xbox One Controller Inputs With Python

Hi all I am trying to find a way to read Xbox One controller inputs with python on a raspberry pi. I have found a library for an Xbox 360 controller but this doesn't seem to recogn

Solution 1:

A wireless xbox 360 controller can be used with a receiver (buy it online) and installing xboxdrv with:

sudo apt-get install xboxdrv

This repository can then be used to get input https://github.com/FRC4564/Xbox Their docs explain using it.

For using an xbox one controller with python you can use the library evdev to the input values. Here is a guide which shows every usage case:

https://diyprojects.io/python-library-evdev-raspberry-pi-use-gamepad-diy-projects-servomotor-games/#.Xa8ZR-gzaUl

Post a Comment for "Read Xbox One Controller Inputs With Python"