mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[hardware test] Use a BankViewController
And add a SerialNumberController
This commit is contained in:
@@ -10,8 +10,7 @@ namespace HardwareTest {
|
||||
|
||||
KeyboardTestController::KeyboardTestController(Responder * parentResponder) :
|
||||
ViewController(parentResponder),
|
||||
m_keyboardView(),
|
||||
m_screenTestController(nullptr)
|
||||
m_keyboardView()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,8 +24,8 @@ bool KeyboardTestController::handleEvent(Ion::Events::Event event) {
|
||||
if (state == onlyKeyDown) {
|
||||
m_keyboardView.setTestedKeyIndex(m_keyboardView.testedKeyIndex()+1);
|
||||
if (m_keyboardView.testedKeyIndex() == Ion::Keyboard::NumberOfValidKeys) {
|
||||
ModalViewController * modal = (ModalViewController *)parentResponder();
|
||||
modal->displayModalViewController(&m_screenTestController, 0.0f, 0.0f);
|
||||
// Returning false will go to the next step in the WizardViewController
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user