MV Disable Right Click

is there a plugin to turn off the right click feature? or is there a way to turn it off? because I'm making a game for mobile and when the player presses the phone screen with two fingers it will open the menu display. Please help
how does that look like?
for windows if there is a HTML content plugin, it draws the context menu,
I disable this one as it was also required for another plugin as well for the
search options as it was annoying and didn't need it.

if the context menu is the same for mobiles, than try this snippet I use:

paste it inside a new plugin, and add it (plug and play)

JavaScript:
document.body.oncontextmenu = () => false;

I can't tell if this works on mobile though.
how does that look like?
for windows if there is a HTML content plugin, it draws the context menu,
I disable this one as it was also required for another plugin as well for the
search options as it was annoying and didn't need it.

if the context menu is the same for mobiles, than try this snippet I use:

paste it inside a new plugin, and add it (plug and play)

JavaScript:
document.body.oncontextmenu = () => false;

I can't tell if this works on mobile though.


for example like the video i sent, so i set two buttons which are Q and E, so when i click both buttons it will automatically display the menu display. i have tried your suggestion but it didn't work, i created a new js file and included it.
All you should need is this. Paste it into a text editor, save as a *.js file, include as a plugin:
Code:
TouchInput.isCancelled = function() { return false; };

That should disable right-click/double press functionality.

Just to note, if the thing you're going for is to disable the menu, you don't need any plugins for that. There's an event command to disable menu access that you can run at the beginning of the game.
All you should need is this. Paste it into a text editor, save as a *.js file, include as a plugin:
Code:
TouchInput.isCancelled = function() { return false; };

That should disable right-click/double press functionality.

Just to note, if the thing you're going for is to disable the menu, you don't need any plugins for that. There's an event command to disable menu access that you can run at the beginning of the game.
it worked, thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/disable-right-click.173005/