From a3b16f394aae46dfd18f5952f16803867bc1f400 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 15 Sep 2006 00:30:18 +0000 Subject: Works enough to run Manic Miner. Slowly. --- include/keyboard.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/keyboard.h') 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 */ -- cgit v1.2.3