Using Arduino to build a simple Stick War: Legacy style controller

Hi everyone,

I'm still learning Arduino and thought it would be fun to build a custom controller inspired by Stick War: Legacy. My idea is to use a joystick and a few push buttons to send keyboard inputs to a PC or Android device.

Has anyone here made a game controller with an Arduino (such as a Leonardo or Pro Micro) that emulates a USB keyboard or gamepad? I'm mainly looking for advice on the best approach, button wiring, and whether there are any good libraries I should start with.

I'd also be interested in seeing similar gaming controller projects if anyone has examples.

Thanks!

I made simple controler for "cheating" on DOS games :slight_smile:
there are 3 buttons (action A, action B and action_C=change_level) and 2 LEDs + Rx+Tx LEDs reused

there is 5 levels with 2 automates each and more can be simply added, one LED just blinks as indicator, Rx,Tx and second LED show level in binary.

I do not have scheme, but this photo should show everything (buttons on pins 2,3,4, leds on pins 8,10 pin-led-330 Ohm-GND) (level=4)


Code:

http://micro-corner.gilhad.cz/blog/Arduino/progs/KlikiMouse5/listings/KlikiMouse5.ino

Web page (in czech)

You can do a search, I'm quite sure that people have build game controllers with 32U4 based devices.