|Re: [hatari-devel] Synching host mouse position to Atari mouse position|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Synching host mouse position to Atari mouse position
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 10 Nov 2019 09:25:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1573374336; bh=isdING1Wh2vE5w9K1TTgPaPeAgnErfGDbOPPB2xJQs4=; h=Date:From:To:Subject:From; b=X5Y5uvxt8h5ee1N573I5y/8nI4LJMJiEB9gidLlEai7JrC9D/4WFPxYNGQbsK1vwV MvNn+7tAfxWLGD/uSdwaeR0rq80D+CDE849ZgmonQpoEAo7/PKGhsPMT+oN0Ge5IY0 NBTOINPDkopCMx0bWqu242l1x62n5uOr1+bwT9jn0rECO1LhSomXdpMwWYMQ9/D5xe al+/D00HMInbSBT5gJZ3VNsAar4FxORx0hbPxYfOBpf0Q2RzwAHaTvfBpU2YBmsUi0 nQr+jINWgkgxU4sWm5fWyqOv3FoloK+F6Zq2RGGGChPUz9KzdU1xoE9Se0cyD8Fd34 aZbuXIesI88/Q==
Am Sat, 9 Nov 2019 10:32:35 +0100
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:
> Le 08/11/2019 à 23:34, Eero Tamminen a écrit :
> > Nicolas, you've fixed IKBD emulation for some demos, any
> > comments on detecting changed mouse handler?
> there's no mouse-only handler, it's mostly about replacing the whole
> ikbd's ROM with a custom program.
> In that case, when IKBD_Cmd_Execute is called, then it's quite likely
> a custom program was uploaded to ikbd's RAM and mouse/keyboard should
> be set back to their default hatari's behaviour.
> Maybe that instead of changing line-A variables another solution
> could be to change IKBD_Cmd_ReadAbsMousePos to intercept the returned
> values, sync/scale them to the host and then really return the new
> absolute positions ?
As far as I know, most programs (including TOS) rather use the relative
mouse mode instead of the absolute mode, so that likely only works in
some few programs.
But maybe it would be possible to fake relative coordinates based on
the absolute coordinates of the host mouse cursor, instead of using the
relative mouse motions of the host cursor? ... not sure whether that
would be much better than the behaviour that we currently already have,