joncampbell123 / dosbox-x

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

Input underscore key on PC98 #997

Closed tomyun closed 5 years ago

tomyun commented 5 years ago

While playing with PC98 machine on Doxbox-X 0.82.14, I can't find a way to input underscore (_) key with my English layout keyboard on macOS. I fiddled with key mapper, for example, mapping ro key to something and pressing it with shift in hope to get _, but no luck yet. Does anyone know a good way to accomplish this?

joncampbell123 commented 5 years ago

I'll pull out the PC-98 system and confirm what the RO key actually does.

There's no case statement for code 0x33 (_ / RO) in src/ints/bios_keyboard.cpp right now which is obviously related to the issue.

joncampbell123 commented 5 years ago

Re-testing the PC-98 BIOS handling of the keyboard, it seems Ro by itself does not emit any keystroke. Shift+Ro however types an underscore. It seems Ctrl+Ro also emits a BIOS scancode.

I will update DOSBox-X to match this behavior.

joncampbell123 commented 5 years ago

You should be able to bind Ro to a key and type an underscore with Shift+Ro now in the latest commit (if you can compile from source)

tomyun commented 5 years ago

Just confirmed I can type in underscore with Shift + Ro on 0.82.15. Thanks!