From bb7b6e8532ef3282fdd15ec133deff919cd7e7c3 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 Apr 2023 09:42:21 +0800 Subject: Initial work to add debug menu from 3dsspec --- source/keyboard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/keyboard.c') 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; -- cgit v1.2.3