BabylonJS/Babylon.js — pull request #343 by Temechon (2014-12-30 22:27:20+00:00)
Title: Update babylon.gamepads.ts

* Attribute 'ongamepadconnected' is now monitored instead of 'GamepadEvent' (GamepadEvent is supported on Chrome but not 'gamepadconnected') => The gamepad API now works correctly for Chrome.
* Added an optional parameter for the constructor to call a custom method when a gamepad is disconnected.
* The gamepad api is now based on the gamepad unique ID (instead of the gamepad name).