Re: [hatari-devel] Recent symbolic keyboard mapping change |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Recent symbolic keyboard mapping change
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 5 Oct 2024 06:47:42 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1728110864; bh=L9SY62CwraiY/yn7nB+UQd/2GTNfPiZ4iLdh2xbok1U=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=U/Aw6X5rHUQN4g7rA0QixisrsSzdMckfMmqh+wmJJSL4BGYgCqq1tapoVtpbhODoD fPwOpGwBuJNllJxQuc3WrTSvI0cmQ2x8clcjFczxI4k/CWSyMQlaLnIsJMjsW5tr8n +PE4J9meofZkW6c1Z5NRzjbRiYlXANAc9UoOFpegJvAULdYL1pLlFtuu5fZgQc2pC2 jBS71JjCLwJwyXP10L86QWK78KL3AsbHfzG31wn2BGeKfvE1hvwyXpadqqHUsSez8N ZxEZm1ixCoqlLFC7ZPetZK3LyABUeSxVnN5RqcovL01+EGVfXNezQFia98rOGVaFG2 46WrBKCAUBwog==
Am Fri, 4 Oct 2024 13:56:46 -0400
schrieb Brad Smith <rainwarrior@xxxxxxxxx>:
....
> > Well, what I did was basically a complete rewrite of your patches. Having a
> > full switch-case statement with all keys for *each* language looked pretty
> > much too big and unmaintainable to me, it's way easier if we only encode
> > the differences to the standard mapping.
>
> So, yes I felt differently about what is maintainable when I wrote it, but
> that doesn't mean I am unwilling to do this as a compromise.
Well, it's me and the other Hatari developers who finally have to maintain
this code in Hatari while you might be off to the next project, so please
understand that I did not do these changes to annoy you, but to get the
code into a shape where I can say "yes, this makes sense to me, that's
maintainable for me".
For example, in the past we e.g. added the external disassembler code
without thinking of the implications first:
https://git.tuxfamily.org/hatari/hatari.git/commit/?id=da3bcf9d1705e4531076e5c078693988a33162af
That code was using huuuuge functions, was hard to understand, and it was a
real pain to fix bugs in there. It was a real time sink for maintenance
later, so at one point in time, I removed it again from the Hatari source
tree.
> Aside from key case changes, in my version I had written it so that NVRAM
> is not allowed to affect the keyboard mapping unless the TOS was identified
> as a multi-language TOS. In your version, you did not include this in your
> revision. I did not attempt to restore this in my PR, but I do not know why
> you chose to discard it, perhaps you could comment?
Sorry, I don't quite get the problem here. I've put the NVRAM stuff into a
"if (countrycode == TOS_LANG_ALL)" statement, so where's the exact problem
here?
> The reason I had done
> this was that I didn't think it made sense to allow NVRAM settings to
> change the symbolic mapping in conflict with the one the TOS can actually
> support. To me the case where this would happen would be the Falcon user
> switching from emuTOS to an original TOS that was not the same language as
> their NVRAM setting, and I felt that in this case the user would want
> mappings that work with the TOS in this case.
Now I'm even more confused ... Falcon TOS is a multi-language TOS, so I
cannot quite follow ... ?
Thomas