sgraham/gamepad.js — pull request #10 by inequation (2012-09-29 17:26:10+00:00)
Title: All-round: Linux build support, Xbox 360 controller on Linux, Chrome 22+ support

An amalgamation of some other people's patches (credited) plus a bit of my work to get the thing to be easily built under Linux.