diff options
author | Ian C <ianc@noddybox.co.uk> | 2023-01-11 16:40:47 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2023-01-11 16:40:47 +0000 |
commit | 61ee8852d771cbb735366757e24130803c8d9762 (patch) | |
tree | 61f9c9535cd49157f36fcab98e199ee055a3405e /source/keyboard.c | |
parent | c257263f3b0e22be70f537264ea33af107c8547a (diff) |
Updated input routine to use symbol shift for special chars.
Diffstat (limited to 'source/keyboard.c')
-rw-r--r-- | source/keyboard.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; |