zip file and use the IDE’s library manager to install it ( Sketch -> Include Library -> Add.
You can install this like any other Arduino library – download the latest release as a. Next, you’ll need a copy of the ArduinoXInput library. XInput AVR boards, properly installed and available in the IDE XInput Library The AVR boards will have “w / XInput” in their name. Make sure you have the latest version of the Arduino IDE to avoid any issues.Īfter you have installed the new boards packages, restart your IDE and you should see the new boards available in the ‘Tools’ menu.
You need to download the one(s) required for your microcontroller and install them by copying the relevant files to your Arduino installation’s ‘hardware’ folder.
Note that the Arduino Uno, Nano, and Mega are missing from this list. This is not a complete list however! Check the supported boards list in the library repository to see if your board is compatible. Using a Leonardo or 5V Pro Micro is my usual suggestion, although if you need a little more ‘oomph’ you can pick up a Teensy LC or Teensy 3.2. The first thing you’ll need is an Arduino-compatible microcontroller that has native USB support.
In this tutorial, I’m going to show you how to program your own Arduino to emulate an Xbox controller using the ArduinoXInput library. Whether you’re retrofitting a Nerf gun, converting a rhythm controller to play an FPS game, or playing PUBG with a frying pan – using an Arduino makes it quick and easy to build your own custom controller. In my opinion, one of the more novel things you can do with an Arduino is put it to use as a custom game controller for your favorite games.