When i want to use another keyboard layout than English, then i have to select the keyboard layout map
file manually and the file that should be used, depends on the selected display_library:
display_library: SDL2 requires the following keyboard layout file:
keymap=sdl2-pc-de.map
and
display_Library: x requires another one:
keymap=x11-pc-de.map
Example config:
# DE keyboard layout
# Keyboard for X11
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none, keymap=/usr/share/bochs/keymaps/x11-pc-de.map, user_shortcut=ctrl-f12
# Keyboard for SDL2
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none, keymap=/usr/share/bochs/keymaps/sdl2-pc-de.map, user_shortcut=ctrl-f12
Couldn't you make it possible to make bochs select the used map file automatically dependent on the used display_library?
So that x11-pc-de.map is used when X is selected for display_options
and sdl2-pc-de.map when SDL2 is used.
In the keyboard section there should be something like a language type only, thus you could introduce a new keyword, let's call it keymap_lang for example. And this keyword option should only ask for the
2 language letters, not the keyboard map file. That way, the map file could be configured automatically
dependent on the display_library that is used.:
Example:
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none, keymap_lang=DE
And this should select the right German keyboard map file, dependent on if display_library is X or SDL 2.
Because fullscreen mode is only supported and possible with SDL 2 and the inbuilt debugger gui only with X i always also have to switch the keyboard map files too.
And this is something, that could be automated.
Ticket moved from /p/bochs/bugs/1452/
Feature added in Bochs repository on Github.