keyboard problem in bluemsx

By DamageX

Master (217)

DamageX의 아바타

08-03-2011, 07:38

Last year I got a laptop with Japanese keyboard layout. Just now, I was trying to run a program in BASIC in the emu, and I discovered that there was no way to type a double quote! The RUN command just isn`t the same when you can`t type a quote...

I downloaded the Japanese version of BlueMSX 2.8.2, but this has the same problem. The quote is over the 2 key on my keyboard (same as my Sony HB-F1II in fact...) but in the emu it creates an @ character. I tried changing the config to a Japanese MSX, and then I can type a quote, but not a colon Sad

Login or 등록 to post comments

By Manuel

Ascended (18077)

Manuel의 아바타

08-03-2011, 10:55

Try to type it as if your host keyboard is English. I think you should try to type a * on your JP keyboard to get a " then.

In openMSX we fixed this by the character mapping from host to MSX keyboard layout.

By DamageX

Master (217)

DamageX의 아바타

10-03-2011, 06:32

By default, there were some keys that didn`t do anything at all, including *. But with a JP MSX, and monkeying with the キーボード構成編集 then I got the keys to match, or at least most of them.

By Manuel

Ascended (18077)

Manuel의 아바타

10-03-2011, 19:16

Can you try on openMSX? I'm curious if it works there.

By DamageX

Master (217)

DamageX의 아바타

11-03-2011, 08:28

Under openmsx 0.8.0, if I start the emulator with an English MSX BIOS ROM, then all the typed characters match what is on my keyboard, no problem. But if I start it with Sony HB-F1II ROMs then the characters are mixed up. Since my laptop doesn`t have a right ALT key at all, I didn`t try KANA mode...

By Manuel

Ascended (18077)

Manuel의 아바타

11-03-2011, 22:49

DamageX: OK, can you try to edit the file share/machines/Sony_HB-F1II/hardwareconfig.xml and in it, change the keyboard_type from "jp_ansi" to "jp_jis" in this part:

    <PPI id="ppi">
      <key_ghosting>true</key_ghosting>
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>jp_ansi</keyboard_type>
      <has_keypad>false</has_keypad>
      <key_ghosting_sgc_protected>false</key_ghosting_sgc_protected>
      <code_kana_locks>true</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

I wonder if that makes a difference for this machine.

EDIT: I just checked, I think this should actually fix it. Also change "50on" to "JIS" in another part of the file.
See http://openmsx.svn.sourceforge.net/viewvc/openmsx/openmsx/trunk/share/machines/Sony_HB-F1II/hardwareconfig.xml?r1=9357&r2=11995

By DamageX

Master (217)

DamageX의 아바타

12-03-2011, 09:09

Yes, I made both changes and then tested it and all was well, thanks.

By Manuel

Ascended (18077)

Manuel의 아바타

12-03-2011, 16:20

If you find more machines with this problem please let me know asap!