Commit Graph

4 Commits

Author SHA1 Message Date
Christian Hergert
76b74b0769 lib: add press and release MksKeyboard API
This currently wraps the internal layers. The real magic will happen in
a GtkWidget with event controllers to proxy things here.
2023-02-09 03:00:36 -08:00
Christian Hergert
4075f1c2ba lib: expose keyboard modifiers as flags property 2023-02-09 02:47:42 -08:00
Christian Hergert
4d110d5791 lib: make MksDevice classes internal
We want to use the vfunc of the class to implement devices coming from a
Qemu object on D-Bus, but we don't want to expose that in public API.

Instead, we can keep the object instance and class internal but still
expose the subclasses as public API. We have to do old-style class
definitions to do that, but worth the ability to keep public API limited
so that we can make changes later.
2023-02-09 02:23:18 -08:00
Christian Hergert
12edec8262 screen: add keyboard and mouse properties
Adds MksKeyboard and MksMouse types. Setup a MksScreenKind for the
MksScreen based on MksQemuConsole:type property. Currently the keyboard
and mouse are not wired up, but here for scoping out the properties.
2023-02-08 21:58:35 -08:00