Skip to content

Conversation

@ZachAR3
Copy link

@ZachAR3 ZachAR3 commented Mar 13, 2025

Added a basic de-bounce timer for the double click to help resolve issues of projects opening multiple times. The root issue lies in the Godot source though, as the double click function shouldn't be triggered multiple times unless actually pressed in the first place.

@novadragonDOTspace
Copy link

https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html#class-inputeventmousebutton-property-double-click

Apparently there is a specific way already in_engine to check for double clicks.

@ZachAR3
Copy link
Author

ZachAR3 commented Jun 26, 2025

https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html#class-inputeventmousebutton-property-double-click

Apparently there is a specific way already in_engine to check for double clicks.

@novadragonDOTspace If you look at my commit and source you will see the double click function is being used, and while it does register double clicks it will keep reigsterinng a "double click" for every click after the first as well (i.e. a triple click would trigger it 2 times). That's why I said it was an issue in the Godot source

@novadragonDOTspace
Copy link

okay, sorry. I am straight up blind.



func _gui_input(event: InputEvent) -> void:
var time := Time.get_ticks_msec()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this declaration line be moved down to just before time is used? (Just before line 44)

That would prevent the variable from being assigned on each GUI Input event if it isn't needed.

@MakovWait MakovWait added this to the 1.4 milestone Sep 17, 2025
@MakovWait
Copy link
Owner

I was not able to reproduce the issue. Perhaps it disappeared in Godot 4.5?

@Deozaan
Copy link

Deozaan commented Nov 5, 2025

I also cannot reproduce #118. Even when I intentionally click 4-5 times before the window goes away as it launches the project, the project is only opened one time.

And that was using Godots v1.3, which I just realized is not the latest release. So I just updated to v1.4 and I still can't reproduce the issue.

My OS is Windows 10. Perhaps the issue only happens on MacOS?

@Deozaan
Copy link

Deozaan commented Nov 5, 2025

Okay actually I can reproduce the issue. If I go into the settings and disable the Auto Close option (which is disabled by default) then Godots remains open when opening a project, and will accept the furious clicking and open the project multiple times.

But if I have Auto Close enabled then the Godots window will close before opening the project multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants