[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ui/cocoa: Support hardware cursor interface
From: |
Peter Maydell |
Subject: |
Re: [PATCH] ui/cocoa: Support hardware cursor interface |
Date: |
Sun, 30 Oct 2022 15:23:59 +0000 |
On Sun, 30 Oct 2022 at 11:20, BALATON Zoltan <balaton@eik.bme.hu> wrote:
> I'm not sure about this and may be wrong but I have a theory that the
> problems with mouse tracking are caused by not taking mouse ponter
> acceleration into account correctly. I did not check it and can't prove it
> but I think the guest and host cursor get out of sync because QEMU does
> not know about pointer acceleration methods and parameters which are
> different for each OS (and also user settable) so it's hard to reproduce
> it in QEMU so it just assumes linear movement and tracks guest cursor
> assuming that. Then it has to correct it when mouse is moved faster and
> the pointer ends up at a different place than expected. Is this a
> plausible theory?
Yes, this is a common problem. The traditional solution is to
make QEMU emulate an absolute-pointing device, usually the USB
tablet. That way we can always provide the guest with the actual
position of the host cursor.
-- PMM