1
0
Fork 0

Remove superfluous alt+enter fullscreen controls

This commit is contained in:
under 2024-03-20 15:43:20 -07:00
parent 35a8fc2f1a
commit 1801c8e5ba
1 changed files with 0 additions and 15 deletions

View File

@ -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)