Re: [hatari-devel] Recent symbolic keyboard mapping change

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


On Mon, Oct 7, 2024 at 6:01 AM Miro Kropáček <miro.kropacek@xxxxxxxxx> wrote:
On Mon, 7 Oct 2024 at 11:01, Thorsten Otto <admin@xxxxxxxxxxx> wrote:

Translation of that scancodes to ascii is done by the OS. So Hatari needs to know which scancodes to put into the buffer, and that depends on the keyboard layout the OS uses.

Why can't Hatari translate host ASCII codes into Atari IKBD codes directly (with additional handling of special keys like shift, control, Fx, ...) ?

We don't get ASCII codes in the SDL_KeyboardEvent. The symbolic mapping is the closest we get to that, and this is exactly what we're discussing here. The symbolic semantics like SDLK_Q tell us that it's the "Q" key on this keyboard, so we don't need to know whether the keyboard is QWERTY or AZERTY or whatever, just that it was the Q key.

-- Brad Smith



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