Disable Mouse Click Move

I have already tried multiple solutions including Shaz's from another similarly named post.

Game_Temp.prototype.setDestination = function(x, y) {
return; // <---- add this line here
this._destinationX = x;
this._destinationY = y;
};

This does work however it also seems to be disabling my ability to left click in game completely. I can right click but I can't left click to activate events after inputting the return... How do I disable moving and still allow clicking on events? From the post it seemed like this should have worked, but it isn't for me.
Put this into a .js file and import it as a plugin. Put it at the bottom.

Code:
Game_CharacterBase.prototype.moveStraight = function(d) {
    this.setMovementSuccess(this.canPass(this._x, this._y, d));
    if (this.isMovementSucceeded()) {
        if (TouchInput.isTriggered() || TouchInput.isPressed() || TouchInput.isLongPressed()) return;
        this.setDirection(d);
        this._x = $gameMap.roundXWithDirection(this._x, d);
        this._y = $gameMap.roundYWithDirection(this._y, d);
        this._realX = $gameMap.xWithDirection(this._x, this.reverseDir(d));
        this._realY = $gameMap.yWithDirection(this._y, this.reverseDir(d));
        this.increaseSteps();
    } else {
        this.setDirection(d);
        this.checkEventTriggerTouchFront(d);
    }
};
Ok awesome, this works... Kind of. I have Sanshiro's Analog Move plugin which allows the character to move 8 directions and by pixel. This fix doesn't seem to work if I have that plugin turned on.
Never used that plugin before. Could you link it?
https://forums.rpgmakerweb.com/index.php?threads/analog-move.49828/
Put this into a .js file and import it as a plugin. Put it at the bottom.

Code:
Game_CharacterBase.prototype.moveStraight = function(d) {
    this.setMovementSuccess(this.canPass(this._x, this._y, d));
    if (this.isMovementSucceeded()) {
        if (TouchInput.isTriggered() || TouchInput.isPressed() || TouchInput.isLongPressed()) return;
        this.setDirection(d);
        this._x = $gameMap.roundXWithDirection(this._x, d);
        this._y = $gameMap.roundYWithDirection(this._y, d);
        this._realX = $gameMap.xWithDirection(this._x, this.reverseDir(d));
        this._realY = $gameMap.yWithDirection(this._y, this.reverseDir(d));
        this.increaseSteps();
    } else {
        this.setDirection(d);
        this.checkEventTriggerTouchFront(d);
    }
};
I am coming from the future to say this :

DO NOT USE THIS AS A PLUGIN

Why? Because it messes up movement routes if you spam click with mouse, it will skip or ruin the event movement.

Use YEP_TouchInputDisabler for better control over all mouse actions.
Necro-post notice: @sparta212

Original thread: https://forums.rpgmakerweb.com/threads/disable-mouse-click-move.79032/