X68000 with non-Japanese keyboard?

ExCyber
Posts: 94
Joined: Sun May 24, 2020 3:33 pm

X68000 with non-Japanese keyboard?

Unread post by ExCyber »

I was trying to understand installing things to HDD on X68000, but I ran into a problem because I don't think there's any way to type the yen symbol, which is the directory separator in Human68K, on my US keyboard. The obvious thing would be to use the backslash key (since the character code is the same; this is presumably why it became the directory separator), but this produces the scan code for the right bracket/brace. As far as I can tell, the PS/2 scan code for the yen/pipe key is more-or-less unique to Japanese keyboards.

I could probably figure out how to make the necessary changes to recognize some other key as the yen/pipe key, but is there some existing solution for this?
User avatar
YLFAndy
Posts: 28
Joined: Sat Sep 12, 2020 10:25 pm
Location: Seattle Area
Contact:

Re: X68000 with non-Japanese keyboard?

Unread post by YLFAndy »

I poked at this a little last night, mapping KEYCODE 115 = 0x00a5 in kbd.map then running loadkeys to load the mapper file. It worked in Linux, but still no love in the core (which I assumed wouldn't happen, but part of me hoped there was some non-raw piping of that data). I don't know where Puu's code is stored, but the github transfer from sorgelig has a PS/2 keyboard emulation section. I don't know enough about core programming (yet) to really say much more than 'there's a thing that kinda sounds like maybe it could be updated to allow what you're asking.' Key.sys in the BIN folder on the Tonton drives might hold some hope, as well, but I haven't dug into that much yet.
Do post back if you figure it out.
User avatar
Sorgelig
Site Admin
Posts: 455
Joined: Thu May 21, 2020 9:49 pm
Been thanked: 10 times

Re: X68000 with non-Japanese keyboard?

Unread post by Sorgelig »

The correct way would be an addition of missed keys through key combo. WIN keys weren't present at that time so they can be an Fn keys for this core. Implementation should be inside the core (not in linux).
puu
Posts: 67
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Been thanked: 10 times
Contact:

Re: X68000 with non-Japanese keyboard?

Unread post by puu »

Unfortunately, the X68000 keyboard has 113 keys. Even if the keyboard for Windows is a Japanese keyboard, it has only 109 keys, so it was not possible to assign it to all the keys. Still, in my DE0-CV version I can assign all the major keys, but MiSTer doesn't assign some important keys such as backslashes.
Fortunately, however, the X68000 has a software keyboard implemented at the BIOS level. On the Human68k console, if you press the second mouse button, the software keyboard will be displayed, so you can cover it with the input from there.
Post Reply