Reading out the keyboard

By wimpie3

Champion (265)

wimpie3의 아바타

24-10-2018, 09:05

Guys,

What's the proper way to read out the keyboard on the MSX? I'm currently using CHGET (call #9f) but this returns AZERTY keys on a QWERY keyboard.

Login or 등록 to post comments

By Grauw

Ascended (8515)

Grauw의 아바타

24-10-2018, 09:24

CHGET is the proper way... the BIOS and keyboard of your MSX don't seem to match. What is the full model number of the MSX you are using? A French model paired with a detachable QWERTY keyboard perhaps? Doesn't it use AZERTY in Basic and DOS too?

By Eugeny_Brychkov

Paragon (1107)

Eugeny_Brychkov의 아바타

24-10-2018, 10:23

I confirm @Grauw (having dealt with localization some years ago) that layout is handcoded into the BIOS. The only universal and portable information you can get out of the keyboard (more or less standard keyboard layout) is scan code, however there's no guarantee that there's specific "letter" (character) is assigned to the key with the specific scan code. The exceptions are control (usually black) keys.

As @Grauw said, you, most probably, are having keyboard for different localization attached. Two ways to proceed:

  1. Source correct keyboard;
  2. Put sitckers onto the differing keys;
  3. Replace the BIOS contents (most probably chip or have it UV-erased and re-programmed if it is UV-EPROM).

By wimpie3

Champion (265)

wimpie3의 아바타

24-10-2018, 10:45

I have the problem when using my rom on webmsx so it might be related to webmsx as well.

By Eugeny_Brychkov

Paragon (1107)

Eugeny_Brychkov의 아바타

24-10-2018, 11:06

wimpie3 wrote:

I have the problem when using my rom on webmsx so it might be related to webmsx as well.

It is related to how emulator handles your local keyboard.

By Grauw

Ascended (8515)

Grauw의 아바타

24-10-2018, 12:24

Eugeny_Brychkov wrote:

2. Put stickers onto the differing keys;

Or pull out the keys and swap ’em Big smile.

wimpie3 wrote:

I have the problem when using my rom on webmsx so it might be related to webmsx as well.

Sounds like it’s a problem with WebMSX’s keyboard mapping then, or the BIOS ROM that WebMSX uses.

By Manuel

Ascended (15829)

Manuel의 아바타

24-10-2018, 19:34

My guess is that Wim is using an AZERTY keyboard on his host PC and that he is emulating an MSX with a QWERTY keyboard. But then again, I might be totally wrong Smile

By wimpie3

Champion (265)

wimpie3의 아바타

24-10-2018, 19:52

You are probably absolutely right :-) Webmsx cannot be put into Azerty mode it seems.

By ppeccin

Champion (344)

ppeccin의 아바타

25-10-2018, 19:54

Hey guys.

It might be simply a matter of configuring the keyboard on WebMSX.
It already detects your host system language and adapts for the layout of some countries, but maybe it is not guessing the right combination for your country/host language.

Please open the Settings Dialog, and on the Keyboard page, click on the "Host Layout" toggle and try to find your host keyboard country/layout.
If its not supported by default, you can simply change the mapping of some keys.

Its easy:
Choose a build-in layout that most closely matches your keyboard to start with, and then change the mapping of any individual keys that are wrong.
Just hover the mouse over the MSX key on the screen, and press the key on your host keyboard to map to that key.

IMPORTANT: WebMSX is an imaginary machine, and ALWAYS uses the international MSX keyboard, or the Japanese keyboard, depending on the Machine selected.

Please contact me if you cannot set the correct mapping or need any help configuring the keys.

Paulo

By Manuel

Ascended (15829)

Manuel의 아바타

25-10-2018, 20:35

Paulo: feature request: translate the host key presses to the right MSX keypresses, depending on which MSX keyboard is being emulated.

So, if you type a " on the host keyboard, the emulator should type SHIFT-2 on a turboR and SHIFT-' on a European MSX... This way the used keyboard is transparent and no manual mapping needs to be made for normal character keys.

By GreyWolf

Master (241)

GreyWolf의 아바타

10-06-2019, 18:08

Manuel wrote:

Paulo: feature request: translate the host key presses to the right MSX keypresses, depending on which MSX keyboard is being emulated.

I agree with the author.