summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-04-23 10:04:01 +0800
committerIan C <ianc@noddybox.co.uk>2023-04-23 10:04:01 +0800
commitfc70a9899db0028122a2c308975b8c11eee878de (patch)
tree01ededb3206f16f353fb49693124fc573a9f2dee
parenta74a14b8a454b3759de9a755efaef3eacfee42ab (diff)
Updated input keys to map ZX81 keyboard
-rw-r--r--source/gui.c49
1 files changed, 25 insertions, 24 deletions
diff --git a/source/gui.c b/source/gui.c
index bbea23c..62edefe 100644
--- a/source/gui.c
+++ b/source/gui.c
@@ -927,42 +927,43 @@ int GUI_Input(const char *prompt, char text[], int maxlen)
int shift;
} keymap[] =
{
- {SK_1, '1', '!'},
- {SK_2, '2', '@'},
- {SK_3, '3', '#'},
- {SK_4, '4', '$'},
- {SK_5, '5', '%'},
- {SK_6, '6', '&'},
- {SK_7, '7', '\''},
- {SK_8, '8', '('},
- {SK_9, '9', ')'},
- {SK_0, '0', '_'},
- {SK_A, 'A', '~'},
+ {SK_1, '1', 0},
+ {SK_2, '2', 0},
+ {SK_3, '3', 0},
+ {SK_4, '4', 0},
+ {SK_5, '5', 0},
+ {SK_6, '6', 0},
+ {SK_7, '7', 0},
+ {SK_8, '8', 0},
+ {SK_9, '9', 0},
+ {SK_0, '0', 0},
+ {SK_A, 'A', 0},
{SK_B, 'B', '*'},
{SK_C, 'C', '?'},
- {SK_D, 'D', '\\'},
+ {SK_D, 'D', 0},
{SK_E, 'E', 0},
- {SK_F, 'F', '{'},
- {SK_G, 'G', '}'},
+ {SK_F, 'F', 0},
+ {SK_G, 'G', 0},
{SK_H, 'H', '^'},
- {SK_I, 'I', 0},
+ {SK_I, 'I', '('},
{SK_J, 'J', '-'},
{SK_K, 'K', '+'},
{SK_L, 'L', '='},
- {SK_M, 'M', '.'},
- {SK_N, 'N', ','},
- {SK_O, 'O', ';'},
+ {SK_M, 'M', '>'},
+ {SK_N, 'N', '<'},
+ {SK_O, 'O', ')'},
{SK_P, 'P', '"'},
{SK_Q, 'Q', 0},
- {SK_R, 'R', '<'},
- {SK_S, 'S', '|'},
- {SK_T, 'T', '>'},
- {SK_U, 'U', ']'},
+ {SK_R, 'R', 0},
+ {SK_S, 'S', 0},
+ {SK_T, 'T', 0},
+ {SK_U, 'U', '$'},
{SK_V, 'V', '/'},
{SK_W, 'W', 0},
- {SK_X, 'X', 0},
- {SK_Y, 'Y', '['},
+ {SK_X, 'X', ';'},
+ {SK_Y, 'Y', 0},
{SK_Z, 'Z', ':'},
+ {SK_PERIOD, '.', ','},
{0, 0, 0}
};