Skip to content

Commit

Permalink
Tweak gyro calibration text
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Dec 27, 2023
1 parent 7ce89af commit c74ccec
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Quake/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3080,17 +3080,17 @@ void M_Calibration_Draw (void)
{
int x;
x = (320-27*8)/2;
M_DrawTextBox (x, 108, 27, 1);
M_DrawTextBox (x, 72, 27, 1);

if (! calibrationComplete)
{
x += 16;
M_Print (x, 116, "Calibrating, please wait...");
M_Print (x, 80, "Calibrating, please wait...");
}
else
{
x += 32;
M_Print (x, 116, "Calibration Complete!");
M_Print (x, 80, "Calibration complete!");
if ((realtime - calibrationCompleteTime) > 2.0)
m_state = m_gyro;
}
Expand Down Expand Up @@ -4085,11 +4085,15 @@ void M_Options_Draw (void)
y += 8;
}

if (m_state == m_gyro)
if (m_state == m_gyro && M_Options_GetSelected () == GYRO_OPT_CALIBRATE)
{
M_Print (x, y, "To calibrate, place the controller");
x += 32;
y += 8;
M_PrintWhite (x, y, "Before calibrating");
y += 8;
M_PrintWhite (x, y, "place the controller");
y += 8;
M_Print (x, y, "on a flat, stable surface");
M_PrintWhite (x, y, "on a flat, stable surface");
}

}
Expand Down

0 comments on commit c74ccec

Please sign in to comment.