fruit-bat / pico-zxspectrum

ZX Spectrum for Raspberry Pico Pi RP2040
481 stars 53 forks source link

Pico Pimoroni VGA demo base USB keyboard #158

Open sonietje opened 3 months ago

sonietje commented 3 months ago

Hi, I managed to connect a USB keyboard to the pico but non-letter shift keys are not working. When I press 'shift'+';' I get nothing while I expect ':'. This is the same for all special characters. But shift + letter shows the upper case. I tried with different USB keyboards but no luck. Thanks for looking into this.

fruit-bat commented 3 months ago

The emulator map keys on the usb keyboard to zx spectrum keys (mostly, in a few cases a single usb key is mapped to multiple spectrum key presses). The effect of shift will be as if the spectrum key was shifted. Is this what you are seeing or have I misunderstood the problem?

sonietje commented 3 months ago

I'm using a UK usb keyboard. So if I want the double quote I press shift single quote but nothing happens. This is the same for all the special character keys.

DPRCZ commented 3 months ago

Try boot to 128K mode and select basic. There should a character key write a character.

sonietje commented 3 months ago

I think I get it. The special characters I need such as ':' and '"' are not in the shift position of the fysical key of the USB keyboard but on the keys of the ZX keyboard. So '"' is right alt key + 'P' and the ':' is right alt + 'Z'. I think I can live with this 😁! Thanks for the clarification.