[Rpcemu] RPCEmu macOS mouse behaviour

Timothy Coltman lists at maemagel.com
Sun Mar 22 03:36:07 PDT 2020


> On 22 Mar 2020, at 09:40, Andrew Hodgkinson <ahodgkin at riscosopen.org> wrote:
> 
> On 19/03/2020, at 08:22, Timothy Coltman <lists at maemagel.com> wrote:
> 
> 
> The root problem is within quite strange (I'm being super polite here) mouse handling code.
> 
> In mainwindow.cpp on non-follow-host mode, the strategy appears to be to try and force the host mouse pointer into the centre of the window, then measure a distance from that and pass it to lower layers. Lower layers appear to be expecting only a difference since the last RISC OS position update though, not a distance-from-centre, so things get out of hand quickly.
> 
> I can't honestly see how the non-follow-host code works on *any* platform and have no idea how I ended up with a magic Mac binary that did. Perhaps it requires a Qt build which *does not* properly support move-mouse-cursor, so move-to-centre is ignored and the differential position logic calculates correct positions by accident?

I had a play around with the source, and I don't think that mouse positioning works on macOS.  I've not tried any other platforms.

> 
> Source code alludes to bugs in follow-host mode that should give the user a preference for turning this off, but at least on macOS the opposite seems quite strongly true. So I've attached a patch:
> 

I seem to be missing the patch attachment.  Does it show up for anyone else?

Tim






More information about the RPCEmu mailing list