mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-01-27 23:05:16 +00:00
Bilal Elmoussaoui
af8d90d1b5
display: Expose a helper for retriving guest position
When running an Android VM with GL support, Android somehow enforces support for only touch events making it difficult to work with QEMU + Android for devolpement / demo purposes without a touch screen. This helper is useful for being able to emulate motion / click events as touch ones
libmks
This library provides a "Mouse, Keyboard, and Screen" to QEMU using the D-Bus device support in QEMU and GTK 4.
Documentation
Nightly documentation can be found here.
Testing
By default, QEMU will connect to your user session D-Bus if you do not
provide an address for -display dbus
. Therefore, it is pretty easy to
test things by running QEMU manually and then connecting with the test
program ./tools/mks
.
qemu-img create -f qcow2 fedora.img 30G
qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-device virtio-vga-gl,xres=1920,yres=1080 \
-m 8G \
-smp 4 \
-display dbus,gl=on \
-cdrom Fedora-Workstation.iso \
-hda fedora.img \
-boot d
and then to run the test widget
meson setup build
cd build
ninja
./tools/mks
Description
This library provides a "Mouse, Keyboard, and Screen" to QEMU using the D-Bus device support in QEMU and GTK 4.
Languages
C
96.6%
Meson
3.2%
Shell
0.2%