Re: [hatari-devel] Some minor changes for sdlgui.c

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]



> Am 20.07.2024 um 15:45 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> 
> Hi!
> 
> Am Sat, 20 Jul 2024 08:15:18 +0200
> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> 
>> I’d like to suggest this patch for Hatari that contains a few refinements:
>> Return object for checkbox and radiobutton. This makes it possible to easily determine which option was checked. I am using this for example for a mixed radiobutton and checkbox list in the GUI (see appended screenshot). If for example NeXTstation and Color are checked and one switches to NeXTcube I can uncheck the Color option. This can be done from switch(but) as for other buttons.
> 
> Can't you simply use SG_EXIT for this case instead?

I can confirm that SG_EXIT works if I set it for all radiobuttons and checkboxes in that dialog. But is this really what SG_EXIT is intended for?
> 
>> As I already suggested in another discussion we should not mix scancodes and symbolic keys. Even if they are likely to match for these keys it introduces an unnecessary source of bugs.
>> On some systems there seem to occur continuous SDL_KEYMAPCHANGED events. To prevent them from messing up GUI handling we should actively ignore them.
> 
> Thanks, I pushed those two fixes to the repository now.

Great!
> 
> Thomas
> 
> 
Andreas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/