summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/keyboard.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/keyboard.h b/include/keyboard.h
index c4d989c..69990ad 100644
--- a/include/keyboard.h
+++ b/include/keyboard.h
@@ -22,7 +22,8 @@
#ifndef DSSPEC_KEYBOARD_H
#define DSSPEC_KEYBOARD_H
-/* Note that the first 40 values purposefully are the keyboard matrix keys
+/* Note that the first 40 values purposefully are the keyboard matrix keys.
+ Note also that they are in display order, not matrix order.
*/
typedef enum
{
@@ -89,7 +90,7 @@ typedef enum
SK_PAD_START,
SK_PAD_SELECT,
- NUM_OF_SOFT_KEYS
+ NUM_SOFT_KEYS
} SoftKey;
typedef struct
@@ -116,4 +117,9 @@ void SK_SetSticky(SoftKey key, int is_sticky);
*/
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_DefineJoypad(void);
+
#endif /* DSSPEC_KEYBOARD_H */