From fc70a9899db0028122a2c308975b8c11eee878de Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 Apr 2023 10:04:01 +0800 Subject: Updated input keys to map ZX81 keyboard --- source/gui.c | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'source') 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} }; -- cgit v1.2.3