shut up compilation warnings

This commit is contained in:
BernardoGiordano 2021-04-28 14:38:39 +02:00
parent 890a4a0d9b
commit 83e632fda2
4 changed files with 4 additions and 0 deletions

View file

@ -92,6 +92,7 @@ void CheatManagerOverlay::drawBottom(void) const
void CheatManagerOverlay::update(InputState* touch)
{
(void)touch;
if (hidKeysDown() & KEY_A) {
std::string cellName = scrollable->cellName(scrollable->index());
if (cellName.compare(0, MAGIC_LEN, SELECTED_MAGIC) == 0) {

View file

@ -63,6 +63,7 @@ void ErrorOverlay::drawBottom(void) const
void ErrorOverlay::update(InputState* touch)
{
(void)touch;
if (button->released() || (hidKeysDown() & KEY_A) || (hidKeysDown() & KEY_B)) {
screen.removeOverlay();
}

View file

@ -59,6 +59,7 @@ void InfoOverlay::drawBottom(void) const
void InfoOverlay::update(InputState* touch)
{
(void)touch;
if (button->released() || (hidKeysDown() & KEY_A) || (hidKeysDown() & KEY_B)) {
screen.removeOverlay();
}

View file

@ -74,6 +74,7 @@ void YesNoOverlay::drawBottom(void) const
void YesNoOverlay::update(InputState* touch)
{
(void)touch;
hid.update(2);
hid.index(buttonYes->held() ? 0 : buttonNo->held() ? 1 : hid.index());