From 7ff002e0d8e9caa4d2e8df969cea2e21bef5a693 Mon Sep 17 00:00:00 2001 From: EkeEke Date: Fri, 15 Aug 2014 15:50:26 +0200 Subject: [PATCH] [Wii] refactored Wiimote pointer calibration menu --- gx/gui/menu.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gx/gui/menu.c b/gx/gui/menu.c index 50c7867..a380fb8 100644 --- a/gx/gui/menu.c +++ b/gx/gui/menu.c @@ -810,13 +810,15 @@ static void prefmenu () case 12: /*** Wii remote pointer calibration ***/ if ((config.calx * config.caly) == 0) { - sprintf (items[12].text, "Wiimote Calibration: MANUAL"); - sprintf (items[12].comment, "Reset default Wii remote pointer calibration"); - GUI_WaitConfirm("Pointer Calibration","Aim center of TV screen"); - config.calx = 320 - m_input.ir.x; - config.caly = 240 - m_input.ir.y; - m_input.ir.x = 320; - m_input.ir.y = 240; + if (GUI_WaitConfirm("Pointer Calibration","Aim center of TV screen")) + { + sprintf (items[12].text, "Wiimote Calibration: MANUAL"); + sprintf (items[12].comment, "Reset default Wii remote pointer calibration"); + config.calx = 320 - m_input.ir.x; + config.caly = 240 - m_input.ir.y; + m_input.ir.x = 320; + m_input.ir.y = 240; + } } else {