summaryrefslogtreecommitdiff
path: root/source/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/keyboard.c')
-rw-r--r--source/keyboard.c8
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;