This library adds the nesssecary bridge between Silverlight and JavaScript in order to utilize GamePads from within Silverlight.
To use this you need a browser that supports the W3 GamePad specifications. As of writing this, only the latest dev/beta versions of Firefox or Chrome has this.
The code was adapted with a lot of help from gamepad.js.