Skip to content

Commit ead9a17

Browse files
committed
Add fullscreen toggle
1 parent 2a0b190 commit ead9a17

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Globals/StageProducer.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ public override void _Input(InputEvent @event)
336336
+ ".png"
337337
);
338338
}
339+
else if (eventKey.Keycode == Key.F11)
340+
{
341+
DisplayServer.WindowSetMode(
342+
DisplayServer.WindowGetMode() == DisplayServer.WindowMode.ExclusiveFullscreen
343+
? DisplayServer.WindowMode.Windowed
344+
: DisplayServer.WindowMode.ExclusiveFullscreen
345+
);
346+
}
339347
}
340348
}
341349

0 commit comments

Comments
 (0)