From 61ee8852d771cbb735366757e24130803c8d9762 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 11 Jan 2023 16:40:47 +0000 Subject: Updated input routine to use symbol shift for special chars. --- source/keyboard.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/keyboard.c') diff --git a/source/keyboard.c b/source/keyboard.c index 9562bfa..c8adbdd 100644 --- a/source/keyboard.c +++ b/source/keyboard.c @@ -93,7 +93,7 @@ static const char *keynames[]= "A", "S", "D", "F", "G", "H", "J", "K", "L", "NEWLINE", "SHIFT", "Z", "X", "C", "V", - "B", "N", "M", "PERIOD", "SPACE", + "B", "N", "M", "SYMBOL SHIFT", "SPACE", "ABOUT", "CONFIG", @@ -372,6 +372,12 @@ const char *SK_KeyName(SoftKey k) } +int SK_KeyPressed(SoftKey key) +{ + return key_state[key].state; +} + + void SK_SaveSnapshot(FILE *fp) { int f; -- cgit v1.2.3