libretro / dosbox-libretro

Port of DOSBox (upstream) to the libretro API.
GNU General Public License v2.0
61 stars 40 forks source link

Keyboard layout issue #78

Open anyputer opened 6 years ago

anyputer commented 6 years ago

So the issue is, if you have any keyboard with a layout other than QWERTY ( Like for example AZERTY ) The keys on the AZERTY keyboard will bind to the QWERTY ones which is a problem. So if I press A ( For example ) on the keyboard, it will come out Q. This qlso meqns thqt the symbols don4t work properly888

Vector-79 commented 6 years ago

Hi,

you have to tell DosBox which keyboard layout you want to use. You can use the "[autoexec]" section of your game's DosBox config file to do so.

If you wanted a German (QWERTZ) keyboard layout, for example, you could do this:

[autoexec] keyb GR

and since AZERTY is common in France and Belgium you could use

[autoexec] keyb FR

or

[autoexec] keyb BE

Check this list for codes https://www.dosbox.com/wiki/KEYB#Layout_codes

Regards

daFourch commented 3 years ago

I'm unearthing this issue because I'm running through a problematic behaviour: my AZERTY keyboard is well recognized on DOS prompt screen, on some games but on others, such as Warcraft or Dune II, A is Q, Z is W. It's back to QWERTY.

I tried to set keyb FR, no result. I tried to swap my keyboard to US in Windows, no result.

Oddly, I tried with DosBox-X and setting keyb US kind of make the keyboard look like an azerty one, that is it makes A key recognized as A in the game. But unfortunately, this doesn't work with both Dosbox RA cores, "core" and "svn".

Is it an issue or a request?