Taken from: http://airspayce.com/mikem/arduino/USBJoystick/