Added ImGui

This commit is contained in:
Simon Lübeß
2020-11-12 23:25:48 +01:00
parent 6e71eeea25
commit 4b877af226
17 changed files with 524 additions and 44 deletions
+25
View File
@@ -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);
}
}
}