Deactivate mouse

How can I deactivate the possibility to use the mouse?
How can I deactivate the possibility to use the mouse?
I think you would have to overwrite the javascript that handles mouse clicks? I'm pretty sure there isn't a way to turn it off via the editor or events.
How can I deactivate the possibility to use the mouse?
I would NOT advise disabling the use of mouse in any way. Some people may want to play your game on a tablet and by disabling mouse clicks it would require them to get accessories and it would only piss a lot of people off.
I would NOT advise disabling the use of mouse in any way. Some people may want to play your game on a tablet and by disabling mouse clicks it would require them to get accessories and it would only piss a lot of people off.
This would only be a factor if you said you supported touch or mouse for gameplay anyway...

But I did like the idea someone mentioned earlier in a different thread. Just stop showing the mouse cursor onscreen when people aren't using it. I don't mind if people use mouse inputs, I just hate the cursor showing on screen even when you don't use it. 
Here is a barbaric approach,

go to your main scip files and open up rpg_core

TouchInput.initialize = function() {
    this.clear();
    this._setupEventHandlers();    
};

find this function and remove the second line

  this._setupEventHandlers();

It prevents touch input from being initialized.  Kind of a brute way to do it,  but meh

I can write a plugin that will remove it for you,  but like i said... very barbaric.
No mouse movement Plugin

Code:
//NoMouseMovement.js/*:it * @plugindesc Simply disables movement by mouse * @author Daemond *  * @help *  * Plug and play *//*:it * @plugindesc Semplicemente blocca il movimento tramite mouse * @author Daemond *  * @help *  * Plug and play */Game_Player.prototype.moveByInput = function(){	if (!this.isMoving() && this.canMove()) {        var direction = this.getInputDirection();        if (direction > 0) {            $gameTemp.clearDestination();            this.executeMove(direction);        }    }};
No mouse movement disables, well mouse movement. But you still see the cursor and can use the mouse on menus. Not sure if that accomplishes the OP goal.
No mouse movement disables, well mouse movement. But you still see the cursor and can use the mouse on menus. Not sure if that accomplishes the OP goal.
No mouse movement is this, remove mouse is another request.

With the mouse or "touch" you can keep functions, for menù, minigames, etc etc
Based on the op's statement, I assumed they didn't want any mouse stuff at all.
Based on the op's statement, I assumed they didn't want any mouse stuff at all.
Ops.. you right, i was sure that i read No Mouse Movement 😛

Sorry, this happend after hours design game 😛
You could maybe disable the mouse clicks so nothing happens when player clicks anything:

Code:
TouchInput._onMouseDown = function(event) {	// Overwrite to do nothing};
Download plugin file
I've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Thank you for moving the thread.

However I was not aware that this would need a plugin at all. From my point of view disabling mouse support should be a basic function that is available somewhere in the configurations. That is the reason why I created the thread in the support forum and not in the script request forum, where it belongs.

That is also the reason why I posted such a short original post, because I thought that this was a really simple question with a quick answer - I was wrong.

Thank you for all your input guys, I was really not aware that it is such a strange wish to disable mouse support. However, I do not plan to support mobile devices anyway to be honest at the moment. After all your feedback I will reconsider my decision. If I ultimately decide to disable the mouse at all I think I will find most of what I need here 🙂

Original thread: https://forums.rpgmakerweb.com/threads/deactivate-mouse.49192/