click and hold?

hi guys, so i've figured out how to work the Mouse System Ex (thanks to everyone who helped yay) though i'm wondering if it is possible to have a minigame in which you have to click and hold a button for a certain amount of time? i've tried looking for a solution, but have found none

for context, i'm trying to make a minigame where you're mixing ingredients in a blender, and the player is meant to hold down the button to blend it to completion

thank you in advance and have a great day rpg maker is constantly tracking my location and it won't stop
Wouldn't a conditional branch with button okay is pressed down work? Loop that check for however many frames the button needs to be held.
should be something around:
TouchInput.isPressed() && TouchInput.ispressed() > X

or if possible: TouchInput?.isPressed() > X

X being the frames for it.

I don't know if there a better way better to do it though.
but you may want to use if exist: TouchInput.isReleased() > X

so if its released after X frames, do something, but need to check
the core what is available for touchInputs.

I did make one for keyboard to extend them for usage, but not using the mouse.
For the touch/mouse input, here are a couple of options for checks:
  1. "Is touch input currently pressed?":
    • Conditional Branch -> Script: TouchInput.isPressed()

  2. "Has touch input been held down for the last 60 frames?":
    • Conditional Branch -> Script: TouchInput._pressedTime >= 60
thanks everyone for the help, i will try it out and let yall know if it works!

Original thread: https://forums.rpgmakerweb.com/threads/click-and-hold.180916/