joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

Suggestion: Key mapping to JIS 'ロ(Ro)' key #434

Open basic2004 opened 6 years ago

basic2004 commented 6 years ago

Dosbox-X with PC-98 or DOS/V when host keyboard is not JP layout, can't input 'Ro(0x73)' key. I thought alternate mapping, this key to other key. I suggest 'Application key', this is nearer with right shift, and this isn't used before Windows 9x. Can we make this option in [dos] section of dosbox.conf?

joncampbell123 commented 6 years ago

I have a USB keyboard with the JP layout that I will plug into Windows 10 soon to re-work the scan code handling to better map the keys properly.

EDIT: I am not rejecting the suggestion, I think that's a good idea.

joncampbell123 commented 6 years ago

@basic2004 I have reworked the code to support a JP keyboard on the host and map input to PC-98 mode using the same layout and shift states as an actual PC-98 keyboard.

I still do not have a default mapping for Ro on US keyboards, but you can go into the mapper interface and map Ro to any key you want now.

joncampbell123 commented 6 years ago

I've added a dynamic remapping in the mapper. If the host keyboard is not Japanese, and the emulation is in PC-98 mode, the windows menu key is remapped to Ro. The mapping is made so that removing the Ro binding restores the Windows menu key.

See if that works for you.

joncampbell123 commented 6 years ago

I will close this issue unless @basic2004 still considers this an unsolved problem.

basic2004 commented 4 years ago

Thanks, I confirmed but too late response... sorry.

I tell more suggestion, Application key should'nt remap to Ro when pc-98 force ibm keyboard layout is true.

And I pressed Grave(Tilde) key but this pressed like Escape maybe this mapped STOP key in native PC98 layout, currently no way to input At(@) and Tilde(~) natively.