First post, by HannibalAnthrope
I've read all the guides, looked thru the manual and searched this forum (as well as Googling the rest of the internet) - but I didn't find an answer to this. But I did feel less alone in having trouble getting a key mapping working. My question is does the keymapper work even when UseScanCodes=false? I am guessing not, but I'd like confirmation.
The issue here is that I am running Dosbox on a Raspberry Pi 3B running Stretch, from the console/cli - and I built the latest Dosbox 0.74-3 from source. It does work well with dynrec enabled, very playable. But I need to make the F2 key send out a CTRL-P (either left or right ctrl works). The keyboard is a Logitech K400R which is a small kbd/touchpad usb wireless combo, and the Fkeys require the Fn button to be used. And of course with no X11 there to manage the keyboard directly, I'm not surprised that I can't get the keys mapped.
The reason I have to set UseScanCodes=false is because when it's true the keyboard sends out incorrect characters/codes for pretty much every key on the keyboard.
I specify the keyboard layout "US" in the conf file.
Note: I AM able to invoke the keymapper with CTRL-F1 _without_ having to press the Fn button. And I have read every post about keymapping that I could, and think I comprehend. But I don't see a way to specify "send CTRL-P" when "F2 is pressed". The opposite, I think would work but haven't tested.
Is ScanCodes required then? (the map file itself seems to use the codes, and sorry if this is an obvious question, but I have no way of knowing that might be going on behind the scenes)
THANKS in advance.