Initial hack at gamepad and joystick support, closes #3.

Not modular, not robust, and not configurable, but it works.