Re: [hatari-devel] Esc key appears to be pressed, but is not |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Esc key appears to be pressed, but is not
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Tue, 3 Sep 2024 16:55:30 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1725375337; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=HpgExtp+Gen+Z1INTbUcQ2Y1MzFhRtKG+xsPSWyC0zU=; b=TrCLq0SfU2c+54CcA0cLXFntrpl9R2/Isho5cQSPd3R3cyKcP1zcxR5av0XxMsQu1K P/dKFj69gcXEjuZsyHZ/3ciC0VrxzbHApIjUOx1eb/SeXwrQH1S+IVQQt8fM2WSdTpUY nAVgGfX4C7N9rl1C8hrKXFIgGh/0IeU0w6zmkYJ6paj5jG5IFjlm3khQrSpvzfz6lFYt BEsnP119aLjusX64dUSFr6Kpl2+6TAOvCQM79nX71AieEX0sT/s8ob0bwJ1LufcQEYJZ Al97eEbhRYYG5ngo1K7n2IspHvvoaMl8MrInp0eSm+1V3rnidc0pWwGY3RbW9XUEqm8O Zn4w==
- Arc-seal: i=1; a=rsa-sha256; t=1725375337; cv=none; d=strato.com; s=strato-dkim-0002; b=PDFzV96yR+Cj0JQjC/Vybr9iXIYLBByPVijzL/cqI14IJPoJoeBMZk9AXL2VXYUden AA1DQb5FqNeqG8q1VBwwNxSbHwpMKsOgj8wxQXm0LOth7cIMl4UqO+l7qpdTZu1PjTFZ xCPJp+Z43zNRdX6ty3+QZleb5h6X8bbDQ1WNooYx312wDiWHQJiJn6lzFPK7fURtGM12 E939CLRyMAs+nPZuJBjux6q2wtJ4H+es/JbkLadRr3BTXsqimsG/8zG7m7M95UymP1oi 8acOE5V2rxYGagTGX++K/PGGjXPj2zW9Eb6F9z9Ee5zKh3DYKAFuPrXg8VQgAvbQwO27 4X9A==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1725375337; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=HpgExtp+Gen+Z1INTbUcQ2Y1MzFhRtKG+xsPSWyC0zU=; b=sKNc2HRHpP1gBt55W8JDhMiS2PDDkUVA+denAgpOV0O53as2icXjk713hgNDrcMmeZ 6oiEOVWqNoQp2/ZBjwoBgfWsfBXpoDbllonvMqwccHUBdN9cEAb19TssxEToxvb9y1Dx mGjqSnitDzGLprLEqnmykqnZrmvLKEmVCM5VUUjvbT/DijmaJKkOarD8y9hm8t5EKpxm hFrakIAelwiyAp+PYfQ1iHnUqefCvq973ODpJpmrLgdtWvxaMaHAf++1EQtj5wuUGQbo jVPmuZRZA8yqWazO7ZHfMIC/pI4ycxOciV52wl75qPeRihJTzDy8PjRZac8lGxlBhn4f ZfNA==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1725375337; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=HpgExtp+Gen+Z1INTbUcQ2Y1MzFhRtKG+xsPSWyC0zU=; b=im/bvJhDH7HHzMtMI5yFY6Bru0lk8xzioW9gNUnGsoYi0rphmhRhnxEQJGk/ICmk/G 8Xu85tUTwrIu5WZs1RAQ==
After having this patch enabled for some time, I disabled it and again have
been using Hatari for some time.
All in all I did not notice a difference, at least my impression is that
with the patch the problem occurs as often as it does without it.
> Am Sun, 18 Aug 2024 09:16:22 +0200
> schrieb Christian Zietz <czietz@xxxxxxx>:
>
> > Uwe Seimet schrieb:
> >
> > > Maybe somebody else also stumbles upon it in a
> > > scenario where it can be better reproduced.
> >
> > FWIW, I get a similar "key stuck" error if I boot Hatari (commit
> > f86d067) into TOS 2.06 and start violently moving the mouse over the
> > Hatari window right after start, i.e., before even the Atari logo
> > appears. I don't have time to bisect this, though.
>
> I can reproduce that one, too. And actually, this already occurred with
> other TOS versions in the past and Hatari has already a work-around
> included for it (by not sending mouse movements within the first 10 VBLs).
> Looks like 10 VBLs are not enough for TOS 2.06, but increasing it to 40
> VBLs fixes the problem here, too:
>
> diff --git a/src/main.c b/src/main.c
> --- a/src/main.c
> +++ b/src/main.c
> @@ -504,7 +504,7 @@ static void Main_HandleMouseMotion(int dx, int dy)
>
> /* Ignore motion when position has changed right after a reset or TOS
> * (especially version 4.04) might get confused and play key clicks */
> - if (bIgnoreNextMouseMotion || nVBLs < 10)
> + if (bIgnoreNextMouseMotion || nVBLs < 40)
> {
> bIgnoreNextMouseMotion = false;
> return;
>
> Uwe, could you please check whether that patch helps with your problem, too?
>
> Thomas
>
>