Add mouse event handling and improve key event handling for controls and windows

This commit is contained in:
Stone_Red
2026-06-12 23:04:38 +02:00
parent c6a9bc1870
commit 0bc9ca6cf2
6 changed files with 218 additions and 24 deletions
+10
View File
@@ -1,3 +1,5 @@
using Cosmos.Kernel.System.Keyboard;
using System.Drawing;
namespace RemSox.UI.GUI.UIEelements;
@@ -15,4 +17,12 @@ public abstract class Control(string type) : UIElement(type)
get;
set => SetProperty(nameof(Size), ref field, value);
}
public virtual void HandleMouseEvent(MouseEvent mouseEvent)
{
}
public virtual void HandleKeyEvent(KeyEvent keyEvent)
{
}
}