summaryrefslogtreecommitdiff
path: root/source/keyboard.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-04-23 09:42:21 +0800
committerIan C <ianc@noddybox.co.uk>2023-04-23 09:42:21 +0800
commitbb7b6e8532ef3282fdd15ec133deff919cd7e7c3 (patch)
treee576c7b35fabe8d903af8ee963ffa42dd2330619 /source/keyboard.c
parent1d1e0acb5b4494f7c1b041e24e5de4f0614a150b (diff)
Initial work to add debug menu from 3dsspec
Diffstat (limited to 'source/keyboard.c')
-rw-r--r--source/keyboard.c6
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;