code: function() {
          // unsubscribe to all events
          me.event.unsubscribe(this.pointerEvent);
          me.event.unsubscribe(this.viewportEvent);
          me.input.releasePointerEvent("pointermove", me.game.viewport);
      }
docs: action to perform on state change