Force Button Press on Mouse Left/Right Click

Hello! 👋

Hopefully quick question here, is it possible to change a left/right click from the mouse to instead "force" a button input?

Thank you!
Yes, but that sounds like a very situational thing. The whole point of a mouse/touch input is that it encodes a position and a "button" (e.g. click/cancel). I think context is important here.

If you only want this at a specific point in an event, e.g. a QTE, it would probably be simpler to just handle that manually along with the regular button inputs. E.g. Conditional Branch -> Script:
  • Pressed (LMB or single touch) this frame:

    TouchInput.isTriggered()
  • Cancelled (RMB or multi-touch) this frame:

    TouchInput.isCancelled()
  • Released (mouse/touch input ended) this frame:

    TouchInput.isReleased()
Otherwise I'm pretty sure you'd need a plugin.

Original thread: https://forums.rpgmakerweb.com/threads/force-button-press-on-mouse-left-right-click.146928/