Remove Mouse Feature

Is there a way to remove the mouse feature in MV?
as in, it's probably in one of the core scripts.

The reason I ask this is because there's now starting to
be Plugins that do different things with movements and stuff, and most have issues with
the mouse.

Not only that, my projects are going to be on Windows only using (Keyboard/Joypad) controls.
I want the mouse system disabled completely.

P.S: Not sure if this is the right section for this type of post.
Wasn't sure if I should post it here or in JS Request's since the
Mouse system might have something to do with the core script.
i don't know if it a good way to do it but you can disable the mouse update it will disable mouse :

you can even call it from a event

Code:
TouchInput.update = function() {}
Very handy, thanks! What would the command be to enable mouse support again?
To be able to turn it on/off on request, you would need to do something slightly different.

Try this, in a new plugin slot (any name):

var _TouchInput_initialize = TouchInput.initialize;TouchInput.initialize = function() { _TouchInput_initialize.call(this); this._touchEnabled = true;}var _TouchInput_update = TouchInput.update;TouchInput.update = function() { if (this._touchEnabled) _TouchInput_update.call(this);}TouchInput.enable = function() { this._touchEnabled = true;}TouchInput.disable = function() { this._touchEnabled = false; TouchInput.clear();}then just do a script call as follows:
Code:
TouchInput.enable()
Code:
TouchInput.disable()
(note, I have not tested this - post back if you try it and get errors)
Works great! Thanks for the quick reply!
To be able to turn it on/off on request, you would need to do something slightly different.


Try this, in a new plugin slot (any name):



var _TouchInput_initialize = TouchInput.initialize;TouchInput.initialize = function() { _TouchInput_initialize.call(this); this._touchEnabled = true;}var _TouchInput_update = TouchInput.update;TouchInput.update = function() { if (this._touchEnabled) _TouchInput_update.call(this);}TouchInput.enable = function() { this._touchEnabled = true;}TouchInput.disable = function() { this._touchEnabled = false; TouchInput.clear();}


then just do a script call as follows:



TouchInput.enable()

Code:
TouchInput.disable()


(note, I have not tested this - post back if you try it and get errors)



I'm sorry for bothering Shaz, but this does not seem to work for me.


I created a new plugin and pasted your code on it, but when I try to do script calls in events with TouchInput.disable() I get a "TypeError: undefined is not a function". Is there something I'm missing here? Thanks!
stupid forum code reformatting!


@Platoon666 this is what your plugin should look like:


var _TouchInput_initialize = TouchInput.initialize;
TouchInput.initialize = function() {
_TouchInput_initialize.call(this);
this._touchEnabled = true;
}

var _TouchInput_update = TouchInput.update;
TouchInput.update = function() {
if (this._touchEnabled)
_TouchInput_update.call(this);
}

TouchInput.enable = function() {
this._touchEnabled = true;
}

TouchInput.disable = function() {
this._touchEnabled = false;
TouchInput.clear();
}


If you try that and it doesn't work, please go into the console and provide a screenshot or copy/paste of the log with the additional error info.
stupid forum code reformatting!


@Platoon666 this is what your plugin should look like:



var _TouchInput_initialize = TouchInput.initialize;
TouchInput.initialize = function() {
_TouchInput_initialize.call(this);
this._touchEnabled = true;
}

var _TouchInput_update = TouchInput.update;
TouchInput.update = function() {
if (this._touchEnabled)
_TouchInput_update.call(this);
}

TouchInput.enable = function() {
this._touchEnabled = true;
}

TouchInput.disable = function() {
this._touchEnabled = false;
TouchInput.clear();
}


If you try that and it doesn't work, please go into the console and provide a screenshot or copy/paste of the log with the additional error info.

Yep, that was it! It's working flawless now. Thanks for the quick reply Shaz!
Hello, is there anyway to do this but only with the right click? Like, just disable the right click.
Hello, is there anyway to do this but only with the right click? Like, just disable the right click.
It was solved here.
It was solved here.
Thanks for responding, In fact I saw that one, however only disables the menu, and I know how to get rid of the menu, what I need is to get rid of the full function of the right click, I don´t know if it is even possible though.
Necro-post notice: @koalamendez

Original thread: https://forums.rpgmakerweb.com/threads/remove-mouse-feature.50218/