Skip to content

Instantly share code, notes, and snippets.

@andrew-wilkes
Created August 20, 2023 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrew-wilkes/6b5649e47eefb76d2f5c004067e907a8 to your computer and use it in GitHub Desktop.
Save andrew-wilkes/6b5649e47eefb76d2f5c004067e907a8 to your computer and use it in GitHub Desktop.
Godot Quit Request Capture
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