Re: [hatari-devel] Apple keyboard + SDL2

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


On 21.05.2017 20:44, Cocoa Pod wrote:
> Hi Thomas,
> 
> Some characters which I have to use are in the table SDLK_WORLD. These
> characters are not parsed because they are not in the table that you
> indicated to me. For these characters I get errors:
> *Could not parse keymap file: '\351' (0 >= 8), '3' (0 > 3 <= 114)*
> *Could not parse keymap file: '\350' (0 >= 8), '8' (0 > 8 <= 114)*
> *Could not parse keymap file: '\347' (0 >= 8), '10' (0 > 10 <= 114)*
> *Could not parse keymap file: '\340' (0 >= 8), '11' (0 > 11 <= 114)*
> *Could not parse keymap file: '\371' (0 >= 8), '40' (0 > 40 <= 114)*
> *Could not parse keymap file: 'Left Alt' (0 >= 8), '56' (0 > 56 <= 114)*
> But if I replace these characters with there own value, all run fine.
> Is it a problem ?

The SDLK_WORLD concept does not exist with SDL2 anymore. But you can use
the normal UTF-8 character for such keys instead. The ones that are
listed in the "sdl_keytab" in keymap.c are also supported on SDL1 this
way. So for example instead of 249 (SDLK_WORLD_89), you can simply use
the character ù instead.

 Hope that helps,
  Thomas



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