Re: [hatari-devel] Recent SDL GUI key up event patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Recent SDL GUI key up event patch
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 7 Jul 2024 06:17:25 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1720333048; bh=gt+LcG4144+Vti1N/NzV3G+860QBeFt4j40ujGQ+cvA=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=OalMREF8hhBmAxrxw9zu9Po0czB648uDnaeu67sIa/Latg942HpPOzjqXFKunmZqS esK+mBE2DXSu9VFZ1jsH4xyJq8JV/6ysP/4ydTWBNKrBm08VFRVSrfLeIpdaj26rah 53gQeL1bduUPeMKUjhAJTSvMfwleoicEOnT6zLi9EgJFznW2PylRq3x+ghQw0oVFm2 pB2K/c04rG2UhuAgsj+nO33spPHqgcCOWzZ2xVO7KiuyiEa9+jcmlIYjd8kVKM2Ckd hxK3PId5mycFGqLQWjcZh0euXIBstYQVpcnbdI1OVJ6AG5zlFELbsM2/whOlE2lDSv tPTHg3erp4siA==
Am Sun, 7 Jul 2024 07:15:02 +0200
schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> Hello all,
>
> I noticed the recent fix for orphaned key up events in SDL GUI. I think this is too complicated and probably unsafe. I suggest calling
>
> SDL_ResetKeyboard();
> SDL_FlushEvent(SDL_KEYUP);
>
> instead.
I remembered your mail from many months ago and tried that first, indeed,
but for some reasons it does not work for me: If I add that sequence e.g.
to Main_PauseEmulation() or the beginning of SDLGui_DoDialogExt(), the
button of the exit dialog still gets activated if I e.g. hold down the
return key and then click the "X" to close the Hatari window. Seems like
the logic in Hatari works a little bit different than in Previous here?
Thomas