Switch to absolute mouse events by default when running in a VM

This will transparently release the mouse grab of the VM when leaving
the screen edge, making it much easier to quickly switch between the VM
and other apps running on the host.
This commit is contained in:
bjorn3
2024-01-12 18:33:29 +01:00
parent c2fd9125a7
commit 7a21573ebd
+2 -1
View File
@@ -46,7 +46,8 @@ impl<F: Fn(u8,bool) -> char> Ps2d<F> {
let mut ps2 = Ps2::new();
let extra_packet = ps2.init().expect("ps2d: failed to initialize");
let vmmouse_relative = true;
// FIXME add an option for orbital to disable this when an app captures the mouse.
let vmmouse_relative = false;
let vmmouse = vm::enable(vmmouse_relative);
Ps2d {