diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-10-30 23:56:26 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-10-30 23:56:26 +0000 |
commit | bb050a2d6a987202e3ec5c69903a77fc6cf79ccb (patch) | |
tree | 45cbd3f9b713b553f6ba49b87ffb6a7d2c68d989 | |
parent | f08256be0fb69083175408e9d87173a5107c9977 (diff) |
Fixed bug where keys were read from the '5th' row as well.
-rw-r--r-- | arm9/source/keyboard.c | 5 | ||||
-rw-r--r-- | source/keyboard.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arm9/source/keyboard.c b/arm9/source/keyboard.c index 04ae120..bbc0c61 100644 --- a/arm9/source/keyboard.c +++ b/arm9/source/keyboard.c @@ -122,6 +122,11 @@ static SoftKey LocatePress(const touchPosition *p) } } + if (key>SK_SPACE) + { + key = NUM_SOFT_KEYS; + } + return key; } diff --git a/source/keyboard.c b/source/keyboard.c index 04ae120..bbc0c61 100644 --- a/source/keyboard.c +++ b/source/keyboard.c @@ -122,6 +122,11 @@ static SoftKey LocatePress(const touchPosition *p) } } + if (key>SK_SPACE) + { + key = NUM_SOFT_KEYS; + } + return key; } |