From 24dfebe8228b173e391f687b97abf9d4b91d7c24 Mon Sep 17 00:00:00 2001 From: Arcanox Date: Wed, 27 Jul 2022 21:08:06 -0500 Subject: [PATCH] Add a message for the "reset averages" button and fix the button not resetting the 5-second average --- source/Application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Application.cpp b/source/Application.cpp index ddb53c9..fbb4504 100644 --- a/source/Application.cpp +++ b/source/Application.cpp @@ -17,6 +17,7 @@ bool Application::update() { if (pressedButtons & HidNpadButton_Minus) { // Reset input counters counterOneSec.reset(); + counterFiveSec.reset(); counterTenSec.reset(); } @@ -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"); }