diff options
Diffstat (limited to 'NxWidgets/UnitTests/CKeypad')
-rw-r--r-- | NxWidgets/UnitTests/CKeypad/Makefile | 2 | ||||
-rw-r--r-- | NxWidgets/UnitTests/CKeypad/ckeypad_main.cxx | 6 | ||||
-rw-r--r-- | NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/NxWidgets/UnitTests/CKeypad/Makefile b/NxWidgets/UnitTests/CKeypad/Makefile index ea5b0fb15..28571f2b2 100644 --- a/NxWidgets/UnitTests/CKeypad/Makefile +++ b/NxWidgets/UnitTests/CKeypad/Makefile @@ -87,7 +87,7 @@ STACKSIZE = 2048 # Common build -VPATH = +VPATH = all: .built .PHONY: clean depend context disclean chkcxx chklib diff --git a/NxWidgets/UnitTests/CKeypad/ckeypad_main.cxx b/NxWidgets/UnitTests/CKeypad/ckeypad_main.cxx index 0b246683a..c103da9ed 100644 --- a/NxWidgets/UnitTests/CKeypad/ckeypad_main.cxx +++ b/NxWidgets/UnitTests/CKeypad/ckeypad_main.cxx @@ -155,7 +155,7 @@ static void clickButtons(CKeypadTest *test, CKeypad *keypad) int clickRow; if (keypad->isButtonClicked(clickColumn, clickRow)) { - printf("clickButtons: %s: Button (%d, %d) is clicked\n", + printf("clickButtons: %s: Button (%d, %d) is clicked\n", clickColumn == i && clickRow == j ? "OK" : "ERROR", clickColumn, clickRow); } @@ -174,10 +174,10 @@ static void clickButtons(CKeypadTest *test, CKeypad *keypad) test->poll(keypad); if (keypad->isButtonClicked(clickColumn, clickRow)) { - printf("clickButtons: ERROR: Button (%d, %d) is clicked\n", + printf("clickButtons: ERROR: Button (%d, %d) is clicked\n", clickColumn, clickRow); } - + usleep(500*1000); } } diff --git a/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx b/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx index 300148cc3..62e01a93c 100644 --- a/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx +++ b/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx @@ -221,7 +221,7 @@ void CKeypadTest::setDisplaySize(void) m_buttonWidth = windowSize.w >> 2; } - + // Lets aim for a height of 7*32 = 224. But lets bump up the number of rows // to allow one for the text box. @@ -340,7 +340,7 @@ void CKeypadTest::showKeypad(CKeypad *keypad) keypad->redraw(); // Then redraw the text box - + m_textbox->enable(); // Un-necessary, the widget is enabled by default m_textbox->enableDrawing(); m_textbox->redraw(); |