Basic click detection

I have been searching everywhere for a way to detect if the mouse/touchpad is being pressed, but to no avail. I've seen countless people asking for this, but no answers.


Is there anyway to create a simple condition where if the mouse/touchpad is being pressed, then x happens? It seems like it would be a very common thing to need.
I believe you would need a script to do this, as under the JS folder in the help file there is different input methods. Yes so you would need to write a script or have someone do the script for you to check if the left or right mouse button. Again in the f1 help file under JS Library the function or method you are looking for is under input and is called isTiggered (keyName)

Original thread: https://forums.rpgmakerweb.com/threads/basic-click-detection.58090/