From 1801c8e5ba633bf8add8d0072105f9eeb0f7d94f Mon Sep 17 00:00:00 2001 From: under Date: Wed, 20 Mar 2024 15:43:20 -0700 Subject: [PATCH] Remove superfluous alt+enter fullscreen controls --- RetroWindowsGUI/Desktop.gd | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/RetroWindowsGUI/Desktop.gd b/RetroWindowsGUI/Desktop.gd index e6cacd7..a54f1ec 100644 --- a/RetroWindowsGUI/Desktop.gd +++ b/RetroWindowsGUI/Desktop.gd @@ -6,19 +6,4 @@ var current_window: Control = the_game # current window func _ready() -> void: DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, true) - -func _process(_delta): - #get_window().grab_focus() - pass - -func _input(event: InputEvent): - if event.is_action_pressed("HotKey_ToggleFullscreen"): - # we can't maximize because godot considers borderless maximized to be fullscreen - if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN: - DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) - else: - DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) - - -