Created
July 25, 2016 16:27
-
-
Save vijayantkatyal/37e5c924be160372e114b154a2773c6f to your computer and use it in GitHub Desktop.
install xbox one controller driver on retro pie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get rpi-source... easier than dkms shenanigans with headers from here | |
# https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi | |
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update | |
# Clean anything from a previous install | |
sudo rm -rfv /usr/src/4.4.11-v7 | |
sudo install bc | |
# Run it | |
sudo rpi-source | |
# Fetch and install the latest version of xpad. Here's my controller | |
# https://github.com/paroj/xpad/blob/master/xpad.c#L131 | |
sudo git clone https://github.com/paroj/xpad.git /usr/src/xpad-0.4 | |
sudo install dkms | |
sudo dkms install -m xpad -v 0.4 | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment