Hi, I gave a Raspberry Pi to my girl of 6 years old and we tried to play with Minecraft Pi, a Lite version of the real Minecraft intended to learn code and pre-installed with Rasbian (the Raspberry Pi OS, a flavour of Linux). Sadly, there is no menu to change the controls which use by default this american layout (QWERTY) and those keys:
Hence, we use an Azerty keyboard so pressing the keys in that configuration is really awkward and unintuitive.
Is it a way to tweak that by editing a file or writing a python script? Pointing to any kind of ressources would be a great help for me.
Input mods for MCPI tend not to be not so straightforward, and not implementable in Python alone.
The first workaround that comes to mind would be to modify SDL to remap your keys, then inject your modified SDL at load time. See this example of an SDL input mod I posted on Stack Exchange. In your case, you'd want to modify SDL_keyboard.c and introduce a table or switch-statement for the appropriate mapping across SDLK_a, SDLK_z, etc.