mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 13:11:53 +00:00
Added ImGui
This commit is contained in:
@@ -53,4 +53,29 @@ namespace GlitchyEngine.Events
|
||||
strBuffer.AppendF("KeyReleasedEvent: {}", _keyCode);
|
||||
}
|
||||
}
|
||||
|
||||
public class KeyTypedEvent : Event, IEvent
|
||||
{
|
||||
private char16 _char;
|
||||
|
||||
[Inline]
|
||||
public char16 Char => _char;
|
||||
|
||||
public override EventCategory Category => .Input | .Keyboard
|
||||
|
||||
public override EventType EventType => .KeyTyped;
|
||||
public static EventType StaticType => .KeyTyped;
|
||||
|
||||
public override StringView Name => "KeyTyped";
|
||||
|
||||
public this(char16 char)
|
||||
{
|
||||
_char = char;
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.AppendF("KeyTypedEvent: {}", _char);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user