randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
482 stars 56 forks source link

Support for VICE keywords KeyboardType and/or KeyboardMapping #180

Open guidol70 opened 3 years ago

guidol70 commented 3 years ago

I would like to use a german Keyboard for the BMC128, but couldnt get the layout work like in the "GTK VICE v3.5" where its possible to use the german keyboard setting and getting - via the smybolic vkm - a very good -keyboard mapping.

So I did try to use the vice.ini keywords KeyboardType and KeyboardMapping like mentioned at https://vice-emu.pokefinder.org/index.php/Keymaps

KeyboardType=3 KeyboardMapping=2

I did try to add these Keywords to the vice.ini of BMC, because in the READ.ME at your github page here is mentioned that eventually some options may work (also only for video-mode?):

If there is no UI support for the option you are looking for, you can try setting it there using VICE documentation

Could you please give me a hint how to use successfully a german keyboard? I also did try to replace the chargen and kernal with the "de"-versions.

The "Host-Keyboard" seem to be "hard coded" to "U.S."

Thanks in advance! ;)

randyrossi commented 3 years ago

Can you try adding keymap=DE at the top of cmdline.txt? This should tell circle you want to use a DE keyboard.

It might get erased if you switch the machine but if the setting works I can fix that.

You probably still need the kernel DE version and you may have to edit the symbolic/positional keysym mapping file to get everything working properly.

On Sun, Jun 6, 2021 at 11:30 AM guidol70 @.***> wrote:

I would like to use a german Keyboard for the BMC128, but couldnt get the layout work like in the "GTK VICE v3.5" where its possible to use the german keyboard setting and getting - via the smybolic vkm - a very good -keyboard mapping.

So I did try to use the vice.ini keywords KeyboardType and KeyboardMapping like mentioned at https://vice-emu.pokefinder.org/index.php/Keymaps

KeyboardType=3 KeyboardMapping=2

I did try to add these Keywords to the vice.ini of BMC, because in the READ.ME at your github page here is mentioned that eventually some options may work (also only for video-mode?):

If there is no UI support for the option you are looking for, you can try setting it there using VICE documentation

Could you please give me a hint how to use successfully a german keyboard? I also did try to replace the chargen and kernal with the "de"-versions.

The "Host-Keyboard" seem to be "hard coded" to "U.S."

Thanks in advance! ;)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKCAPZBUERPRDIHOQL3TROH77ANCNFSM46GCFFPQ .

-- Randy Rossi

guidol70 commented 3 years ago

I added keymap=DE but it didnt changed anything :( Where could I get a "kernel DE version"? Does BMC128 have a Keyboard-Debug-Option like the GTK3-version of VICE? This would make it much more easy to create a own .vkm file ;)

Can you try adding keymap=DE at the top of cmdline.txt? This should tell circle you want to use a DE keyboard. You probably still need the kernel DE version and you may have to edit the symbolic/positional keysym mapping file to get everything working properly.

randyrossi commented 3 years ago

Sorry, I meant the chargen DE version. What keys are not working as expected? I think even if the keyboard is not US, you should still be able to map whatever key you want to the C64 matrix. It's just a matter of finding the usb code for the keys you are pressing.

On Sun, Jun 6, 2021 at 3:56 PM guidol70 @.***> wrote:

I added keymap=DE but it didnt changed anything :( Where could I get a "kernel DE version"? Does BMC128 have a Keyboard-Debug-Option lika the GTK3-version of VICE? This would make it much more easy to create a own .wkm file ;)

Can you try adding keymap=DE at the top of cmdline.txt? This should tell circle you want to use a DE keyboard. You probably still need the kernel DE version and you may have to edit the symbolic/positional keysym mapping file to get everything working properly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/180#issuecomment-855453690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKAOXPGUJFR2XZI63KLTRPHF5ANCNFSM46GCFFPQ .

-- Randy Rossi

guidol70 commented 3 years ago

Ahh - you meant the kernal not a Circle Kernel ;) I also did try to load charg_de and kernal_de manually or replacing kernal/chargen in /C128 but had no effect (that I would like to have)

With Symbolic I have a Star on Shift-8 and with Positional I have a ( on Shift-8 and ) on Shift-9

On both I have Y on Z and Z on Y and / on -

With symbolic I have 0 and ) on the 0 with positional I have only 0 on 0 unshifted and shifted

How could I get (like on a german keyboard) 0 on 0 and = on shifted 0

How could I find out the "usb code for the keys" (Scancodes? I read they should be nummeric for SDL VICE)?

Do you know if I have to "press" the ASCII/DIN Key for german Chars (did read that on the german Forum64) - but how do I press ASCII/DIN in VICE?

Sorry, I meant the chargen DE version. What keys are not working as expected? I think even if the keyboard is not US, you should still be able to map whatever key you want to the C64 matrix. It's just a matter of finding the usb code for the keys you are pressing.