Hiding mouse

Hey!

I have a simple question. Is there a way to hide mouse in-game but keep it in the game menus (after you press ESC)?

If not, how do I completely turn off the mouse? Thank you for answers!
This should help:
I use a simple plug&play plugin by triacontane. The mouse cursor disappears if you press a key on the keyboard or a button on the gamepad. As soon as you move the mouse, the cursor will appear, so you can control the menu with the mouse without restrictions.

MousePointerErase.js

Original thread: https://forums.rpgmakerweb.com/threads/hiding-mouse.166197/