From f08256be0fb69083175408e9d87173a5107c9977 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Oct 2006 23:50:04 +0000 Subject: Completed FAT loading, custom keypad definitions and fixed keyboard hang bug --- arm9/include/keyboard.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'arm9/include') diff --git a/arm9/include/keyboard.h b/arm9/include/keyboard.h index c3fab5b..2afb5df 100644 --- a/arm9/include/keyboard.h +++ b/arm9/include/keyboard.h @@ -108,18 +108,23 @@ void SK_DisplayKeyboard(uint16 *vram); */ int SK_GetEvent(SoftKeyEvent *ev); +/* Returns TRUE while there are still key events for this cycle. Unlike + SK_GetEvent this does not do joypad mappings. +*/ +int SK_GetBareEvent(SoftKeyEvent *ev); + /* Sets a key to be 'sticky' (it will be released automatically on the next non-sticky press). */ void SK_SetSticky(SoftKey key, int is_sticky); -/* Flush all the keys. -*/ -void SK_ClearKeys(void); - /* Map the joypad to keys. Note that when mapped that both the key and the joypad code will be generated. */ void SK_DefinePad(SoftKey pad, SoftKey key); +/* Returns a name for key symbols. +*/ +const char *SK_KeyName(SoftKey pad); + #endif /* DS81_KEYBOARD_H */ -- cgit v1.2.3