Add windowed terminal, basic text, rectangle rendering, and keyboard events

This commit is contained in:
Stone_Red
2026-06-08 17:42:08 +02:00
parent 57f011ffe8
commit fc71af028f
10 changed files with 284 additions and 12 deletions
+7
View File
@@ -18,6 +18,13 @@ public sealed class Window(string title, int processId, int id, IRenderSource re
public bool AutoFlush { get; set; } = false;
public event Action<Cosmos.Kernel.System.Keyboard.KeyEvent>? OnKeyEvent;
public void HandleKeyEvent(Cosmos.Kernel.System.Keyboard.KeyEvent keyEvent)
{
OnKeyEvent?.Invoke(keyEvent);
}
public bool IsFocused
{
get => WindowManager.IsWindowFocused(this);