A way to completely remove mouse functionality?

Hi all, hope everyone is well.

I hate the mouse for my game. I don't think it works well and it just causes issues with targeting for battle (that is, if your mouse hovers over an enemy, it will always target that enemy, even if you use the arrow keys or a controller to switch to a different enemy). The fix is to basically move the mouse off the screen.

But what I'd really like to do is just remove mouse functionality altogether. I know there are plugins to disable mouse use or hide the mouse cursor but this doesn't actually remove the mouse...it just hides it, which makes it even more frustrating for a player because now the mouse cursor is hovering over an enemy but you can't see the mouse cursor!

So is there a way to just remove mouse functionality altogether? As if when you loaded up the game the mouse just is NOT an option, period.

I've looked, I've played around with various plugins, and I just can't seem to get the answer I need.

If anyone knows it would seriously help me out. Heck, I'd even pay like $100 for the help, honestly. That's how much I hate it.
Hi there!

It's a quick and maybe not fancy way to do it, but it seems to work here.
Just add this line on a txt file and save it with an extension .js, then put it as a plugin(below all other plugins):

TouchInput.update = function() {};
I haven't tested it myself, but I'm guessing this plugin should be as simple as:
JavaScript:
TouchInput._setupEventHandlers = function() {}

This will remove all mouse (and touch) related events, which should effectively disable any and all mouse/touch input.
Thank you both! I will give them a try. Much appreciated for your time and the quick response.
TouchInput._setupEventHandlers = function() {}
document.body.style.cursor = 'none';

this is the solution, it completely removes mouse functionality, while the second line hides the cursor.
Copy this into a new js file and you'll be good

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-completely-remove-mouse-functionality.153162/