code: function( index, type, config ) {
  		var currentHandler,
  			InputHandler = inputHandlerMap[ type ],
  			controller = this.controllers.get( index );
  
  		this.initInputHandlers( index );
  		currentHandler = this.inputHandlers[ index ][ type ];
  		if ( currentHandler ) {
  			currentHandler.disable();
  		}
  
  		this.inputHandlers[ index ][ type ] = new InputHandler( controller, config );
  
  		if ( this._enabled ) {
  			this.inputHandlers[ index ][ type ].enable();
  		}
  	}
docs: Configure the input for a controller
  @param {number} index - Either 0 or 1
  @param {string} type - Type of input handler (either 'keyboard' or 'gamepad')
  @param {object} config - Configuration for input handler (see config.json for examples)