code: function () {
      var localGamepad = navigator.getGamepads
            && navigator.getGamepads()[this.data.controller],
          proxyControls = this.el.sceneEl.components['proxy-controls'],
          proxyGamepad = proxyControls && proxyControls.isConnected()
            && proxyControls.getGamepad(this.data.controller);
      return proxyGamepad || localGamepad;
    }
docs: *****************************************************************
  Gamepad state
   
  Returns the Gamepad instance attached to the component. If connected,
  a proxy-controls component may provide access to Gamepad input from a
  remote device.
  
  @return {Gamepad}