void Nomis::drawButton(Button b) { arduboy.clear(); switch(b) { case Button::A: drawAButton(); break; case Button::B: drawBButton(); break; case Button::UP: drawUp(); break; case Button::RIGHT: drawRight(); break; case Button::DOWN: drawDown(); break; case Button::LEFT: drawLeft(); break; case Button::NONE: break; } arduboy.display(); delay(500); }
void TouchScreenArrowButton::draw(bool pressed){ switch(_dir){ case UP: drawUp(pressed); break; case DOWN: drawDown(pressed); break; case LEFT: drawLeft(pressed); break; case RIGHT: drawRight(pressed); break; } }