I have added support for a simple gamepad to the game. It was not easy to implement this in javascript: there are no button press and release events there - only periodic polling of the device. Not sure if this will work with all gamepads.
This video on youtube: