mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-13 19:59:07 +01:00
[Wii] refactored Wiimote pointer calibration menu
This commit is contained in:
parent
7064f4e90d
commit
7ff002e0d8
@ -810,13 +810,15 @@ static void prefmenu ()
|
|||||||
case 12: /*** Wii remote pointer calibration ***/
|
case 12: /*** Wii remote pointer calibration ***/
|
||||||
if ((config.calx * config.caly) == 0)
|
if ((config.calx * config.caly) == 0)
|
||||||
{
|
{
|
||||||
sprintf (items[12].text, "Wiimote Calibration: MANUAL");
|
if (GUI_WaitConfirm("Pointer Calibration","Aim center of TV screen"))
|
||||||
sprintf (items[12].comment, "Reset default Wii remote pointer calibration");
|
{
|
||||||
GUI_WaitConfirm("Pointer Calibration","Aim center of TV screen");
|
sprintf (items[12].text, "Wiimote Calibration: MANUAL");
|
||||||
config.calx = 320 - m_input.ir.x;
|
sprintf (items[12].comment, "Reset default Wii remote pointer calibration");
|
||||||
config.caly = 240 - m_input.ir.y;
|
config.calx = 320 - m_input.ir.x;
|
||||||
m_input.ir.x = 320;
|
config.caly = 240 - m_input.ir.y;
|
||||||
m_input.ir.y = 240;
|
m_input.ir.x = 320;
|
||||||
|
m_input.ir.y = 240;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user