ender
Creatures
Posts: 39
|
Post by ender on Nov 4, 2020 6:18:24 GMT
In case anyone is interested, I've documented the HID mapping for the The C64 keyboard, as well as the resultant Linux keycodes and the VICE matrix values from the .vkm in a single table:
The VICE keymap in use is /usr/lib/vice/C64/theC64-sym-CLASSIC.vkm by the way. It should be possible to use this on any Linux system.
|
|
|
Post by spannernick on Nov 4, 2020 13:25:30 GMT
Now thats handy, Thankyou, I will find that very useful..
|
|
ender
Creatures
Posts: 39
|
Post by ender on Nov 4, 2020 19:24:38 GMT
I ran into trouble using this exact mapping, including the .vkm file, on a C64 Mini. Turns out everything works fine except, for some reason, the "+" and "-" keys. They did not work properly, even when I connected the The C64 keyboard. I'm not entirely sure what the machine thought it was receiving, but it printed as spaces, both shifted and unshifted, with the occasional random character appearing if I kept pressing them over and over again.
Very strange.
I ended up mapping them to F23 and F24 instead, and changing the .vkm file to reflect this (keycode 193 and 194). That worked just fine.
I guess something in the Mini picks up KPPLUS and KPMINUS and does something evil and magical to them before handing them over to VICE.
|
|
|
Post by spannernick on Nov 4, 2020 19:38:52 GMT
The virtual keyboard uses the vkm files too.
|
|
ender
Creatures
Posts: 39
|
Post by ender on Nov 4, 2020 20:19:41 GMT
The virtual keyboard uses the vkm files too. Maybe that might affect it, but it's hard to see why it would have this effect. Anyway, the virtual keyboard is less relevant on a Mini with a working keyboard.
|
|
|
Post by spannernick on Nov 29, 2020 17:10:42 GMT
Down and Right keys are Cursor keys - CRSR-Down and CRSR-Right on THEC64 Maxi/THEVIC 20 Keyboard, you have just named them Down and Right.
|
|
ender
Creatures
Posts: 39
|
Post by ender on Nov 29, 2020 19:13:00 GMT
Down and Right keys are Cursor keys - CRSR-Down and CRSR-Right on THEC64 Maxi/THEVIC 20 Keyboard, you have just named them Down and Right. Yeah, I was lazy. Should be obvious though.
|
|
|
Post by jonnypencils on May 17, 2021 14:17:17 GMT
Forgive me for reviving a slightly old thread but these keymap files are driving me nuts. OK, long story short, I've put a Pi4 with Combian 64 in the TheC64 case and wired the TheC64 keyboard into the Pi as a USB keyboard. Simple enough and works great, mostly. With a standard pos.vkm nearly all the keys work apart from + and - (the £ prints a +), up arrow key/pi symbol doesn't do anything. * @ and [] are there but out of position. I have tried keyrah mapfile, the theC64-sym-CLASSIC.vkm which @spannernic kindly posted on another thread (thought that was bound to work but it broke it completely!). So, I guess my question is has anybody used the TheC64 keyboard as a simple USB keyboard in vice and managed to get all the keys working correctly? Every edit I do to keymap files breaks them completely! By the way, highly recommend Combian 64 as an alternative to TheC64 - I have been having lots of fun calling BBS boards all morning Thanks for your time.
|
|
|
Post by jonnypencils on May 17, 2021 14:33:39 GMT
I ran into trouble using this exact mapping, including the .vkm file, on a C64 Mini. Turns out everything works fine except, for some reason, the "+" and "-" keys. They did not work properly, even when I connected the The C64 keyboard. I'm not entirely sure what the machine thought it was receiving, but it printed as spaces, both shifted and unshifted, with the occasional random character appearing if I kept pressing them over and over again. Very strange. I ended up mapping them to F23 and F24 instead, and changing the .vkm file to reflect this (keycode 193 and 194). That worked just fine. I guess something in the Mini picks up KPPLUS and KPMINUS and does something evil and magical to them before handing them over to VICE. I don't suppose you could post a link to the vkm file you ended up with could you? That would be really helpful!
|
|
|
Post by spannernick on May 17, 2021 17:11:18 GMT
|
|
|
Post by jonnypencils on May 18, 2021 6:40:03 GMT
Thanks will give it a try.
|
|
|
Post by jonnypencils on May 18, 2021 6:53:42 GMT
Thanks will give it a try. Yes, that did the trick! Every key working. Every other one I tried had thrown errors or simply not worked so thanks so much for this.
|
|
|
Post by spannernick on May 18, 2021 15:01:10 GMT
Thats ok but thank jj0 not me, he made the keymap.. I just guessed it would work cause VICE is running on Linux in the machines firmware.
|
|
|
Post by cnpeters on Jul 20, 2021 18:17:17 GMT
Hey - is there a way to enable positional keyboard mapping on the mini - or at least a way to get into vice on the inside and enable it?
I've got a maxi and it works great, but I've also got a perfectly good Vic 20 keyboard with a rusted out motherboard, so this seems like a good use for it.
|
|
|
Post by spannernick on Jul 21, 2021 17:57:39 GMT
You have to use a Keyrah V2 with the VIC20 keyboard, it works with THEC64 Mini, If you want to use Full VICE with THEC64 Mini then get PCUAE 1.5.1, its included with it as a mode.
|
|
ender
Creatures
Posts: 39
|
Post by ender on Aug 28, 2021 20:24:50 GMT
I've updated the spreadsheet with the keycodes sent by Keyrah V2 in "Emu" mode, and I also made a keymap for the The C64 Mini (or the The C64), which works perfectly on the The C64 Mini with a Keyrah V2. The keymap needs to be installed under /usr/lib/vice/C64 as one of the theC64-sym-??.vkm files. I used theC64-sym-US.vkm, because I use the UK map for the built-in keyboard, and this way I can just switch USB keyboard nationality if I want to use an external *real* keyboard with Keyrah. Here's the keymap: If you're unsure about what to do with this, here are the steps: - Copy the above to a text file - you can use Notepad for this. Save the file as "theC64-sym-US.vkm" on a USB stick.
- Get a shell on your Mini; If you don't have a serial port on your Mini, use the On-screen Shell posted in the Software forum.
- If using the serial console, mount the USB stick: mount /tmp/usbdrive/sda1 /mnt
- Remount the root disk as read/write: mount -rw -o remount /
- Save the old keymap: mv /usr/lib/vice/C64/theC64-sym-US.vkm /usr/lib/vice/C64/theC64-sym-US.save
- Copy the new keymap: cp /mnt/theC64-sym-US.vmk /usr/lib/vice/C64
- Remount the root filesystem as read-only: mount -r -o remount /
- If using the serial console, unmount the USB stick: umount /mnt
- If using the on-screen shell, use exit to leave the shell
Now you can switch to the "US" USB keyboard nationality using the on-screen menus, and connect your Keyrah V2, and every key should work properly.
|
|
|
Post by spannernick on Aug 29, 2021 18:42:18 GMT
I've updated the spreadsheet with the keycodes sent by Keyrah V2 in "Emu" mode, and I also made a keymap for the The C64 Mini (or the The C64), which works perfectly on the The C64 Mini with a Keyrah V2. The keymap needs to be installed under /usr/lib/vice/C64 as one of the theC64-sym-??.vkm files. I used theC64-sym-US.vkm, because I use the UK map for the built-in keyboard, and this way I can just switch USB keyboard nationality if I want to use an external *real* keyboard with Keyrah. This is included with PCUAE, you can enable it in the PCUAE Option Menu but some of the symbol keys were wrong, like +,-, pound, up arrow and equals, I have to test this with my keyrah V2 but I think you might of fixed my keyrah keymap in PCUAE for me... if so thanks...
|
|
ebug
Creatures
Posts: 13
|
Post by ebug on Nov 5, 2024 22:37:26 GMT
Sadly I was out of luck as I tried on GTK3 Vice 3.8 Linux Mint :-( it recognized none of the keycodes :-( I have an USB modded theC64Maxi case. (Only modded the keyboard and disconnected the rest and put it into a ESD bag inside the case :-)
|
|
ebug
Creatures
Posts: 13
|
Post by ebug on Nov 5, 2024 23:58:43 GMT
Well I tried the SDL build of VICE C64 3.8 on a Linux Mint 21.3 and I manage to get ALL the keys EXCEPT ; to work ! This key is outputting a keycode of 000 that the SDLvice will have nothing to do with in the .vkm config file. :-( HELP !
|
|