Re: [hatari-devel] Strange timestamp issue |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Strange timestamp issue
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 28 Jul 2024 08:06:37 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1722154000; bh=TyVSgZ/WEfVxOPXDjN0Vezwa/BmgAyBlX1Phwz2ZfQs=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Ai91Q9/B/RXrnYNLlD9iAk/JBfWvy84ipIVsGv2D3BfiwHXufmpIsfpaqd61ruNJl 9K2mv0XemSFjjwVV1nGU/5EhSd0WPW7kwGhUJcgAChpNfAHLKG6rJgD3pg94dQmXIW tikG3y8z3Y5vnlooXW24ZPISvVEyTbOaLa4XkOm81xpnoeC6sHU4zxugXt5bALBkeu XYeGE/ggkHQB4u2Das2zKfKD9Yanr0qsFLl2EaRUpqzbd7j4HFYapemlIWDBEuQ+Py VE1FjMYXRdF9siO26LAV6DF8p8pmGOneE+ZlfsHqG+8HnUtQL5WqfVR+jdC6O6WYp6 lcuHtM1p8Zvew==
Am Sat, 27 Jul 2024 14:49:33 +0200
schrieb Uwe Seimet <Uwe.Seimet@xxxxxxxxx>:
> > >Such an option would also revole the timing problems with the keyboard
> > >repeat etc. in fast-forwarding mode, wouldn't it?
> >
> > Most likely, yes. And also double-clicks in GEM programs.
> >
> > > If the mouse leaves
> > > the Hatari window and re-enters it, the mouse pointer position is out of
> > > sync
> >
> > Yes, that is also something which most emulators struggle with, including
> > aranym. Problem is that, in order to sync them, the emulator needs to know
> > where the emulated machine currently displays its own cursor. But that is not
> > always possible, given that a lot of games have there own routines to draw the
> > mouse cursor.
>
> I see, but also here I would like to ask the Hatari team: Is it possible to
> have a non-default option that improves the mouse pointer handling for
> users that do not run software with their own mouse cursor routines?
I guess it would be possible to implement some hacks for this ... you'd
either need some kind of driver on the Atari side (maybe an .ACC) that
somehow polls the mouse position from Hatari and then sets the GEM mouse
to the same position, or Hatari could try to mess with the Line-A variables
to read and/or set the mouse position on the Atari side.
Anyway, you also need to consider that the window might be scaled and that
there are borders in some screen modes, so you often also can't get a
straight 1:1 mapping between the host mouse position and the GEM mouse.
The problems are certainly solvable, but it's certainly a bit of work. Feel
free to send patches if you've got enough spare time to look into this!
> If you use Hatari for editing/development the behavior that we just discuss
> is rather inconvenient. It would be great if at least optionally this could
> be improved.
For the time being, I recommend to use the mouse grabbing keyboard shortcut
to switch quickly between host and Atari mouse handling.
Thomas