From bb050a2d6a987202e3ec5c69903a77fc6cf79ccb Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Oct 2006 23:56:26 +0000 Subject: Fixed bug where keys were read from the '5th' row as well. --- arm9/source/keyboard.c | 5 +++++ source/keyboard.c | 5 +++++ 2 files changed, 10 insertions(+) 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; } -- cgit v1.2.3