So would it be better if I separate them instead? one that saves and one that opens the containing folder? will that be better for a smoother experience?DaedalusYoung wrote:No, love.mousepressed is a callback function. LÖVE calls it automatically when the mouse is pressed, it is your job to write the function.
If you wanted to do it the way you described, you could do it with [utl=http://www.love2d.org/wiki/love.mouse.isDown]love.mouse.isDown[/url], but that would trigger every frame, as long as you keep the mouse pressed. You'd need to add additional checks for this, and it isn't really intended to be used like this.
[EDIT]
The love.mousepressed explanation were just an example and it's as you say, I don't want to trigger it every frame, I just want it to trigger once.