diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-15 00:30:18 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-15 00:30:18 +0000 |
commit | a3b16f394aae46dfd18f5952f16803867bc1f400 (patch) | |
tree | 544ebc5e9bc66154b83037ff199ceab5f06f51f7 /include/keyboard.h | |
parent | e007fe3daeff4bcd64bd41894d5606fe43948672 (diff) |
Works enough to run Manic Miner. Slowly.
Diffstat (limited to 'include/keyboard.h')
-rw-r--r-- | include/keyboard.h | 10 |
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 */ |