namespace Engine.Core; /// /// Backend-agnostic input event captured during the current frame. /// public readonly record struct InputEvent( InputEventType Type, Key Key = Key.Unknown, bool IsRepeat = false, int MouseButton = -1, float WheelX = 0, float WheelY = 0, string? Text = null); public enum InputEventType { KeyDown, KeyUp, TextInput, MouseButtonDown, MouseButtonUp, MouseWheel, FocusGained, FocusLost, }