diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-10-30 23:50:04 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-10-30 23:50:04 +0000 |
commit | f08256be0fb69083175408e9d87173a5107c9977 (patch) | |
tree | f869da9dca929124ee952f56325e4e8904d70bda /arm9/include/keyboard.h | |
parent | a61e0aa6a31d6028eeb4ff45bb6c71f604641fea (diff) |
Completed FAT loading, custom keypad definitions and fixed keyboard hang bug
Diffstat (limited to 'arm9/include/keyboard.h')
-rw-r--r-- | arm9/include/keyboard.h | 13 |
1 files changed, 9 insertions, 4 deletions
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 */ |