added fullscreen

This commit is contained in:
2022-11-12 00:08:18 +01:00
parent 86989f7fce
commit fab7188747
4 changed files with 34 additions and 3 deletions

23
src/Main.cs Normal file
View File

@@ -0,0 +1,23 @@
using Godot;
using System;
public class Main : Node2D
{
// Declare member variables here. Examples:
// private int a = 2;
// private string b = "text";
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
public override async void _Process(float delta)
{
if (Input.IsActionJustReleased("fullscreen"))
{
OS.WindowFullscreen = !OS.WindowFullscreen;
}
}
}