diff options
Diffstat (limited to 'source/keyboard.c')
-rw-r--r-- | source/keyboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/keyboard.c b/source/keyboard.c index a08b72d..b598a7c 100644 --- a/source/keyboard.c +++ b/source/keyboard.c @@ -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; |