-
Notifications
You must be signed in to change notification settings - Fork 4
Keyboard Mapping
The ZX Spectrum's keyboard is a very special beast! It is not uncommon that one key is having five different meanings. When you are in Spectrum 16k/48k or Spectrum+ mode, you might want to have this schematic illustration at hand.
MEGA65 | ZX Spectrum | Comment |
---|---|---|
MEGA | SYMBOL SHIFT | Use the red elements in the schematic illustration above. |
Right Shift | CAPS SHIFT | In K mode, use the white elements above the numbers. In L mode use upper case characters. |
Left Shift | Smart Shift | Similar to CAPS SHIFT, but on all MEGA65 keys, that have an alternative "shift-character" visible (such as all numbers, :, ;, ...), this "shift-character" is being generated instead of sending CAPS SHIFT + <character> to the Spectrum. Example: Left Shift + 2 generates double quotes ("), which is what you would expect, when you look at the MEGA65 keyboard. If you used Right Shift + 2 instead (i.e. CAPS SHIFT), then you would have gotten the At character (@). |
Ctrl | Extend Mode | Switch to E mode. Equivalent to SYMBOL SHIFT + CAPS SHIFT. |
Alt | (Sequences) | Playback those sequences of key strokes on the Spectrum that are necessary to generate special characters. On the MEGA65 keyboard, these special characters are printed in light gray color at the side of some keys. Example: Pressing Alt + / generates the backslash \ on the Spectrum by sending the sequence to enter the E mode on the Spectrum and then sending SYMBOL SHIFT + D to actually generate the backslash. |
Tab | Edit | Switch to BASIC's line edit mode. Equivalent to CAPS SHIFT + 1. |
Left Arrow | Delete | Backspace, equivalent to CAPS SHIFT + 0. |
Clr/Home | True Video | BASIC's non inverted colors, equivalent to CAPS SHIFT + 3. |
Inst/Del | Inv. Video | BASIC's inverted colors, equivalent to CAPS SHIFT + 4. |
Restore | Break | Break command, for example for interrupting BASIC programs. Equivalent to CAPS SHIFT + Space |
Run/Stop | Graphics | Switch to G mode and back. Equivalent to CAPS SHIFT + 9
|
Esc | (NMI) | Trigger an NMI. In ESXDOS this enters the NMI Browser. |
Caps Lock | (Alternate Mapping) | Emulate joysticks via the MEGA65's cursor keys and space (fire). |
-
The MEGA65's cursor keys behave like expected: They behave like the Spectrum's cursor keys, because they are mapped to the cursor key sequences of the Spectrum as shown in the image above: Spectrum's CAPS SHIFT + <5 to 8>.
-
When the MEGA65 Caps Lock mode is active, then the cursor keys are by default emulating a Sinclair joystick by mapping the joystick movements to the following numbers: 6=left, 7=right, 8=down, 9=up, 0=fire. The Space key is mapped to fire in this mode. You can change the configuration of the Joysticks.
In general, the characters and functions shown on a MEGA65 key are mapped as closely as possible to the Spectrum. For example if you press Shift + :, then you will receive a [ just like you would expect it, when you look at the MEGA65 keyboard. In the background, the MEGA65 keyboard is sending the sequence to enter E
mode and then SYMBOL SHIFT + Y.
This convenience functions work everywhere possible, see also the information about the Alt key above.
It works also for the Spectrum's color modes in BASIC, which you can reach on the MEGA65 keyboard via Alt + <number key> (background) and Alt + Shift + <number key> (foreground).
Have a look at the ZX Basic Manual to learn more about the five edit modes K
, L
, C
, E
and G
.