Created
August 20, 2023 10:02
-
-
Save andrew-wilkes/6b5649e47eefb76d2f5c004067e907a8 to your computer and use it in GitHub Desktop.
Godot Quit Request Capture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _notification(what): | |
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST: | |
if not Input.is_key_pressed(KEY_F8): | |
get_tree().quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment