On 03/09/2024 02:33, Carl Hauser via wrote:

Well, I was wrong -- it is sending a duplicate mouse packets when the mouse wheel is rotated. The packets correctly represent the mouse buttons state. I just now discovered that one of my Logitech mice sends continuous mouse events when the wheel is rotated half a notch and held there. Another Logitech mouse doesn't do that but does send multiple (6-10) events per notch. A Microsoft mouse sends 2 events per notch.

I don't know where these should be suppressed. Mouse wheel rotation of a host mouse shouldn't send anything to the emulated Sun mouse. I suspect that the unwanted host events are propagating down to escc via calls to sunmouse_sync. So is sunmouse_sync where they should be filtered out? Probably, because the calling code is not specific to sunmouse and for other mice those calls are needed.

Ah so it's from the events generated by the mouse wheel? I think we can safely assume that Sun never produced any wheeled serial mice, in which case it should be possible to filter those events out before they get to the guest.

I should have a bit of time later today to make the relevant changes and send out a v2 patch.


ATB,

Mark.


Reply via email to