diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/keyboard.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/keyboard.h b/include/keyboard.h index c3fab5b..2afb5df 100644 --- a/include/keyboard.h +++ b/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 */ |