+ added more event types

This commit is contained in:
Julian Hinxlage 2019-11-28 13:19:08 +01:00
parent 4a0b7a5bf1
commit ab2e1daea2
2 changed files with 12 additions and 7 deletions

View File

@ -11,12 +11,17 @@ namespace vkvm {
enum EventType { enum EventType {
Timer = 1, Timer = 1,
MouseMove = 2, MouseMove = 2,
MouseButton = 3, MouseLeftUp = 3,
KeyDown = 4, MouseLeftDown = 4,
KeyUp = 5, MouseRightUp = 5,
UpdateControlRegisters = 6, MouseRightDown = 6,
Redraw = 7, MouseMiddleDown = 7,
RenderText = 8 MouseMiddleUp = 8,
KeyDown = 9,
KeyUp = 10,
UpdateControlRegisters = 11,
Redraw = 12,
RenderText = 13
}; };
} }

View File

@ -289,7 +289,7 @@ namespace vkvm {
auto getFont() -> FontType { auto getFont() -> FontType {
//TODO(julian): get font properly //TODO(julian): get font properly
return FontType(getRegisters()->textMode_font, "", 0, 0); return {getRegisters()->textMode_font, "", 0, 0};
} }
auto setFont(const FontType &newValue) -> void { auto setFont(const FontType &newValue) -> void {