Closed z5241248 closed 5 months ago
command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])
Maybe we should only add this when the console is set to "vnc" or "spice"?
Yes, thank you very much.
I only tested on VNC, but after adding this sentence, using Spire did not result in any errors. We can add a judgment before that.
# avoiding mouse offset
if self._console_type == "vnc":
command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])
return command
Merged, thanks 👍
Adding the following sentence can effectively avoid the mouse offset issue in QEMU, and the current testing situation is good
command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])