Skip to content

Commit

Permalink
Add a message for the "reset averages" button and fix the button not …
Browse files Browse the repository at this point in the history
…resetting the 5-second average
  • Loading branch information
ArcanoxDragon committed Jul 28, 2022
1 parent 4d2f068 commit 24dfebe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ bool Application::update() {
if (pressedButtons & HidNpadButton_Minus) {
// Reset input counters
counterOneSec.reset();
counterFiveSec.reset();
counterTenSec.reset();
}

Expand Down Expand Up @@ -110,7 +111,8 @@ void Application::printUI() {
cprintf(60, "\tX: %4.1f\n", counterTenSec.averageHzX);
cprintf(60, "\tY: %4.1f\n", counterTenSec.averageHzY);

moveCursor(console->consoleHeight, 1);
moveCursor(console->consoleHeight - 1, 1);
printf("Press - to reset averages\n");
printf("Press + to exit");
}

Expand Down

0 comments on commit 24dfebe

Please sign in to comment.