diff mbox

[RFC] hw/misc/macio/cuda.c: erratic mouse fix

Message ID F1BD3BC8-D71F-4813-8CA4-24FBB456F82B@gmail.com
State New
Headers show

Commit Message

Programmingkid Aug. 7, 2016, 5:15 a.m. UTC
For everyone who is having a problem with the mouse pointer acting erratically, this patch should offer some relief. By decreasing the polling rate of the ADB mouse, the mouse pointer becomes more manageable. I was always able to reproduce the erratic mouse issue by playing an mp3 in QuickTime Player on a Mac OS 9.2 guest. With this patch the problem was almost unnoticeable. 

Please let me know how well this works for you.

Note: I only have test this patch on a Mac OS X host running a Mac OS 9.2 guest. Hopefully it will fix the problem on Windows and Linux as well. 

 hw/misc/macio/cuda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox


diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c
index 05c02fb..0e97d0a 100644
--- a/hw/misc/macio/cuda.c
+++ b/hw/misc/macio/cuda.c
@@ -911,7 +911,7 @@  static void cuda_realizefn(DeviceState *dev, Error **errp)
     s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET;
     s->adb_poll_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, cuda_adb_poll, s);
-    s->autopoll_rate_ms = 20;
+    s->autopoll_rate_ms = 35;
     s->adb_poll_mask = 0xffff;