Use of keymap files in vice3.0-libretro

Hello,

I’m using the core x64 to emulate a C64 with a modifed keyboard (USB). I was able to find that sdl_sym.vkm is used by this core but then I’m not able to adjust this vkm file to work with my keyboard.

My questions:

  • From my keyboard, how to find keysym/scancode required in the file?
  • Shall the keysym to be put with sym (like “ampersand”, “backslash”) as found for ex. in Link OR codes (like “47”, “303”) as found in Link OR both are ok?

I’m a littlebit lost in the way to catch the right codes in order to push them to the vkm files. Is there limitations in the codes available or what I can do in Raspbian can be done with this vkm file (I was able to remap ALL the keyboard in Raspbian).

PS: Extra question: is it not better to go for positional map instead of symbolic? If yes, how to do that with x64?

Thank you for your help.

One extra finding: it seems vice-libretro uses SDL library (Simple DirectMedia Layer) and I’ve found a file that is related to mapping of raw keys: SDL_keysym.h.

Shall I assume only codes in this file are to be used in core (from 0 to 322 but not all)? Some of my keys may be out of the enumerated ones, then shall this file to be completed and then recompiled with the core?

Thank you for your help!