+ 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 {
Timer = 1,
MouseMove = 2,
MouseButton = 3,
KeyDown = 4,
KeyUp = 5,
UpdateControlRegisters = 6,
Redraw = 7,
RenderText = 8
MouseLeftUp = 3,
MouseLeftDown = 4,
MouseRightUp = 5,
MouseRightDown = 6,
MouseMiddleDown = 7,
MouseMiddleUp = 8,
KeyDown = 9,
KeyUp = 10,
UpdateControlRegisters = 11,
Redraw = 12,
RenderText = 13
};
}

View File

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