2010-11-13 23:34:53 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Copyright (C) 2010
|
|
|
|
* by Dimok
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied
|
|
|
|
* warranty. In no event will the authors be held liable for any
|
|
|
|
* damages arising from the use of this software.
|
|
|
|
*
|
|
|
|
* Permission is granted to anyone to use this software for any
|
|
|
|
* purpose, including commercial applications, and to alter it and
|
|
|
|
* redistribute it freely, subject to the following restrictions:
|
|
|
|
*
|
|
|
|
* 1. The origin of this software must not be misrepresented; you
|
|
|
|
* must not claim that you wrote the original software. If you use
|
|
|
|
* this software in a product, an acknowledgment in the product
|
|
|
|
* documentation would be appreciated but is not required.
|
|
|
|
*
|
|
|
|
* 2. Altered source versions must be plainly marked as such, and
|
|
|
|
* must not be misrepresented as being the original software.
|
|
|
|
*
|
|
|
|
* 3. This notice may not be removed or altered from any source
|
|
|
|
* distribution.
|
|
|
|
***************************************************************************/
|
|
|
|
#include <unistd.h>
|
2010-11-28 16:34:30 +01:00
|
|
|
#include "GUISettingsMenu.hpp"
|
2011-01-06 19:59:45 +01:00
|
|
|
#include "Controls/DeviceHandler.hpp"
|
2010-11-13 23:34:53 +01:00
|
|
|
#include "settings/CSettings.h"
|
|
|
|
#include "prompts/PromptWindows.h"
|
|
|
|
#include "language/gettext.h"
|
|
|
|
#include "settings/SettingsPrompts.h"
|
|
|
|
#include "settings/GameTitles.h"
|
2011-06-04 18:29:08 +02:00
|
|
|
#include "settings/CGameCategories.hpp"
|
2011-01-06 19:59:45 +01:00
|
|
|
#include "usbloader/wbfs.h"
|
2011-10-21 20:48:10 +02:00
|
|
|
#include "themes/CTheme.h"
|
2011-03-14 22:19:21 +01:00
|
|
|
#include "utils/tools.h"
|
2010-11-13 23:34:53 +01:00
|
|
|
|
|
|
|
static const char * OnOffText[MAX_ON_OFF] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" )
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char * GameInfoText[GAMEINFO_MAX] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "Game ID" ),
|
|
|
|
trNOOP( "Game Region" ),
|
|
|
|
trNOOP( "Both" ),
|
|
|
|
trNOOP( "Neither" )
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char * FlipXText[XFLIP_MAX][3] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
{ trNOOP( "Right" ), "/", trNOOP( "Next" ) },
|
|
|
|
{ trNOOP( "Left" ), "/", trNOOP( "Prev" ) },
|
|
|
|
{ trNOOP( "Like SysMenu" ), "", "" },
|
|
|
|
{ trNOOP( "Right" ), "/", trNOOP( "Prev" ) },
|
|
|
|
{ trNOOP( "DiskFlip" ), "", "" }
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char * PromptButtonsText[MAX_ON_OFF] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "Normal" ),
|
|
|
|
trNOOP( "Widescreen Fix" ),
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char * KeyboardText[KEYBOARD_MAX] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
"QWERTY",
|
|
|
|
"DVORAK",
|
|
|
|
"QWERTZ",
|
|
|
|
"AZERTY",
|
|
|
|
"QWERTY 2"
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
2011-01-23 21:13:41 +01:00
|
|
|
static const char * DiscArtDownloadText[DISCARTS_MAX_CHOICE] =
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "Original/Customs" ),
|
|
|
|
trNOOP( "Customs/Original" )
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char *ScreensaverText[SCREENSAVER_MAX] =
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "3 min" ),
|
|
|
|
trNOOP( "5 min" ),
|
|
|
|
trNOOP( "10 min" ),
|
|
|
|
trNOOP( "20 min" ),
|
|
|
|
trNOOP( "30 min" ),
|
|
|
|
trNOOP( "1 hour" )
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
2011-01-23 21:13:41 +01:00
|
|
|
static const char * HomeMenuText[HOME_MENU_MAX_CHOICE] =
|
2011-01-22 17:10:36 +01:00
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
trNOOP( "System Default" ),
|
|
|
|
trNOOP( "Full Menu" ),
|
|
|
|
trNOOP( "Default" )
|
2011-01-22 17:10:36 +01:00
|
|
|
};
|
|
|
|
|
2011-11-12 19:14:09 +01:00
|
|
|
static const char * searchModeText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "Beginning" ),
|
|
|
|
trNOOP( "Content" ),
|
|
|
|
};
|
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
GuiSettingsMenu::GuiSettingsMenu()
|
2011-07-26 00:28:22 +02:00
|
|
|
: SettingsMenu(tr("GUI Settings"), &GuiOptions, MENU_NONE)
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
int Idx = 0;
|
|
|
|
Options->SetName(Idx++, "%s", tr( "App Language" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Display" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Clock" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Tooltips" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Flip-X" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Prompts Buttons" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Widescreen Factor" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Font Scale Factor" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Keyboard" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Disc Artwork Download" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Screensaver" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Mark new games" ));
|
2011-09-04 12:13:47 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Show Play Count" ));
|
2011-07-26 00:28:22 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Show Free Space" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "HOME Menu" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Use System Font" ));
|
2011-11-12 19:14:09 +01:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Search Mode" ));
|
2011-12-28 17:27:30 +01:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Virtual Pointer Speed" ));
|
2012-02-05 19:38:26 +01:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Adjust Overscan X" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Adjust Overscan Y" ));
|
2011-07-26 00:28:22 +02:00
|
|
|
|
|
|
|
SetOptionValues();
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void GuiSettingsMenu::SetOptionValues()
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
int Idx = 0;
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: App Language
|
|
|
|
const char * language = strrchr(Settings.language_path, '/');
|
|
|
|
if(language)
|
|
|
|
language += 1;
|
|
|
|
if (!language || strcmp(Settings.language_path, "") == 0)
|
|
|
|
Options->SetValue(Idx++, "%s", tr( "Default" ));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", language);
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Display
|
|
|
|
Options->SetValue(Idx++, "%s", tr( GameInfoText[Settings.sinfo] ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Clock
|
|
|
|
if (Settings.hddinfo == CLOCK_HR12)
|
|
|
|
Options->SetValue(Idx++, "12 %s", tr( "Hour" ));
|
|
|
|
else if (Settings.hddinfo == CLOCK_HR24)
|
|
|
|
Options->SetValue(Idx++, "24 %s", tr( "Hour" ));
|
|
|
|
else if (Settings.hddinfo == OFF)
|
|
|
|
Options->SetValue(Idx++, "%s", tr( "OFF" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Tooltips
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[Settings.tooltips]));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Flip-X
|
|
|
|
Options->SetValue(Idx++, "%s%s%s", tr(FlipXText[Settings.xflip][0]),
|
|
|
|
FlipXText[Settings.xflip][1], tr( FlipXText[Settings.xflip][2] ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Prompts Buttons
|
|
|
|
Options->SetValue(Idx++, "%s", tr( PromptButtonsText[Settings.wsprompt] ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Widescreen Factor
|
|
|
|
Options->SetValue(Idx++, "%0.3f", Settings.WSFactor);
|
2011-02-25 19:18:57 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Font Scale Factor
|
|
|
|
Options->SetValue(Idx++, "%0.3f", Settings.FontScaleFactor);
|
2011-02-25 19:18:57 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Keyboard
|
|
|
|
Options->SetValue(Idx++, "%s", KeyboardText[Settings.keyset]);
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Disc Artwork Download
|
|
|
|
Options->SetValue(Idx++, "%s", tr( DiscArtDownloadText[Settings.discart] ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Screensaver
|
|
|
|
Options->SetValue(Idx++, "%s", tr( ScreensaverText[Settings.screensaver] ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Mark new games
|
|
|
|
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.marknewtitles] ));
|
2010-12-31 14:13:14 +01:00
|
|
|
|
2011-09-04 12:13:47 +02:00
|
|
|
//! Settings: Show Play Count
|
|
|
|
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.ShowPlayCount] ));
|
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Show Free Space
|
|
|
|
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.ShowFreeSpace] ));
|
2011-01-22 17:10:36 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Home Menu style
|
|
|
|
Options->SetValue(Idx++, "%s", tr( HomeMenuText[Settings.HomeMenu] ));
|
2011-07-24 18:32:09 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Use System Font
|
|
|
|
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.UseSystemFont] ));
|
2011-11-12 19:14:09 +01:00
|
|
|
|
|
|
|
//! Settings: Search Mode
|
|
|
|
Options->SetValue(Idx++, "%s", tr( searchModeText[Settings.SearchMode] ));
|
2011-12-28 17:27:30 +01:00
|
|
|
|
|
|
|
//! Settings: Virtual Pointer Speed
|
|
|
|
Options->SetValue(Idx++, "%g", Settings.PointerSpeed);
|
2012-02-05 19:38:26 +01:00
|
|
|
|
|
|
|
//! Settings: Adjust Overscan X
|
|
|
|
Options->SetValue(Idx++, "%i", Settings.AdjustOverscanX);
|
|
|
|
|
|
|
|
//! Settings: Adjust Overscan Y
|
|
|
|
Options->SetValue(Idx++, "%i", Settings.AdjustOverscanY);
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int GuiSettingsMenu::GetMenuInternal()
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
int ret = optionBrowser->GetClickedOption();
|
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
return MENU_NONE;
|
|
|
|
|
|
|
|
int Idx = -1;
|
|
|
|
|
|
|
|
//! Settings: App Language
|
|
|
|
if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (!Settings.godmode)
|
|
|
|
{
|
|
|
|
WindowPrompt(tr( "Language change:" ), tr( "Console should be unlocked to modify it." ), tr( "OK" ));
|
|
|
|
return MENU_NONE;
|
|
|
|
}
|
|
|
|
SetEffect(EFFECT_FADE, -20);
|
|
|
|
while (GetEffect() > 0) usleep(100);
|
|
|
|
HaltGui();
|
|
|
|
if(parentElement)
|
|
|
|
{
|
|
|
|
((GuiWindow *) parentElement)->Remove(this);
|
|
|
|
((GuiWindow *) parentElement)->SetState(STATE_DISABLED);
|
|
|
|
}
|
|
|
|
ResumeGui();
|
|
|
|
|
|
|
|
int returnhere = 1;
|
|
|
|
while (returnhere == 1)
|
|
|
|
returnhere = MenuLanguageSelect();
|
|
|
|
|
|
|
|
if (returnhere == 2)
|
|
|
|
{
|
|
|
|
//! Language changed. Reload game titles with new lang code.
|
2012-01-08 19:24:46 +01:00
|
|
|
GameTitles.SetDefault();
|
|
|
|
GameTitles.LoadTitlesFromGameTDB(Settings.titlestxt_path);
|
2011-07-26 00:28:22 +02:00
|
|
|
return MENU_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
HaltGui();
|
|
|
|
if(parentElement)
|
|
|
|
{
|
|
|
|
((GuiWindow *) parentElement)->Append(this);
|
|
|
|
((GuiWindow *) parentElement)->SetState(STATE_DEFAULT);
|
|
|
|
}
|
|
|
|
SetEffect(EFFECT_FADE, 20);
|
|
|
|
ResumeGui();
|
|
|
|
while (GetEffect() > 0) usleep(100);
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Display
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.sinfo >= GAMEINFO_MAX) Settings.sinfo = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Clock
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.hddinfo >= CLOCK_MAX) Settings.hddinfo = 0; //CLOCK
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Tooltips
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.tooltips >= MAX_ON_OFF) Settings.tooltips = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Flip-X
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.xflip >= XFLIP_MAX) Settings.xflip = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Prompts Buttons
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.wsprompt >= MAX_ON_OFF) Settings.wsprompt = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Widescreen Factor
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entrie[20];
|
|
|
|
snprintf(entrie, sizeof(entrie), "%0.3f", Settings.WSFactor);
|
|
|
|
int ret = OnScreenKeyboard(entrie, sizeof(entrie), 0);
|
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
for(u32 i = 0; i < sizeof(entrie); ++i)
|
|
|
|
{
|
|
|
|
if(entrie[i] == ',')
|
|
|
|
entrie[i] = '.';
|
|
|
|
}
|
|
|
|
|
|
|
|
Settings.WSFactor = LIMIT(atof(entrie), 0.01f, 1.5f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Font Scale Factor
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entrie[20];
|
|
|
|
snprintf(entrie, sizeof(entrie), "%0.3f", Settings.FontScaleFactor);
|
|
|
|
int ret = OnScreenKeyboard(entrie, sizeof(entrie), 0);
|
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
for(u32 i = 0; i < sizeof(entrie); ++i)
|
|
|
|
{
|
|
|
|
if(entrie[i] == ',')
|
|
|
|
entrie[i] = '.';
|
|
|
|
}
|
|
|
|
|
|
|
|
Settings.FontScaleFactor = LIMIT(atof(entrie), 0.01f, 1.5f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Keyboard
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.keyset >= KEYBOARD_MAX) Settings.keyset = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Disc Artwork Download
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.discart >= DISCARTS_MAX_CHOICE) Settings.discart = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Screensaver
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.screensaver >= SCREENSAVER_MAX) Settings.screensaver = 0;
|
|
|
|
|
|
|
|
SetWPADTimeout();
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Mark new games
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.marknewtitles >= MAX_ON_OFF) Settings.marknewtitles = 0;
|
|
|
|
}
|
|
|
|
|
2011-09-04 12:13:47 +02:00
|
|
|
//! Settings: Show Play Count
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.ShowPlayCount >= MAX_ON_OFF) Settings.ShowPlayCount = 0;
|
|
|
|
}
|
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
//! Settings: Show Free Space
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.ShowFreeSpace >= MAX_ON_OFF) Settings.ShowFreeSpace = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Home Menu Style
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.HomeMenu >= HOME_MENU_MAX_CHOICE) Settings.HomeMenu = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Use System Font
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.UseSystemFont >= MAX_ON_OFF) Settings.UseSystemFont = 0;
|
2011-10-21 20:48:10 +02:00
|
|
|
|
|
|
|
HaltGui();
|
|
|
|
Theme::LoadFont(Settings.ConfigPath);
|
|
|
|
ResumeGui();
|
|
|
|
|
|
|
|
if(Settings.FontScaleFactor == 1.0f && Settings.UseSystemFont == ON)
|
|
|
|
Settings.FontScaleFactor = 0.8f;
|
|
|
|
else if(Settings.FontScaleFactor == 0.8f && Settings.UseSystemFont == OFF)
|
|
|
|
Settings.FontScaleFactor = 1.0f;
|
2011-07-26 00:28:22 +02:00
|
|
|
}
|
|
|
|
|
2011-11-12 19:14:09 +01:00
|
|
|
//! Settings: Search Mode
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++Settings.SearchMode >= SEARCH_MAX_CHOICE) Settings.SearchMode = 0;
|
|
|
|
}
|
|
|
|
|
2011-12-28 17:27:30 +01:00
|
|
|
//! Settings: Virtual Pointer Speed
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entrie[20];
|
|
|
|
snprintf(entrie, sizeof(entrie), "%g", Settings.PointerSpeed);
|
|
|
|
int ret = OnScreenKeyboard(entrie, sizeof(entrie), 0);
|
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
for(u32 i = 0; i < sizeof(entrie); ++i)
|
|
|
|
{
|
|
|
|
if(entrie[i] == ',')
|
|
|
|
entrie[i] = '.';
|
|
|
|
}
|
|
|
|
|
|
|
|
Settings.PointerSpeed = atof(entrie);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-02-05 19:38:26 +01:00
|
|
|
//! Settings: Adjust Overscan X
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entrie[20];
|
|
|
|
snprintf(entrie, sizeof(entrie), "%i", Settings.AdjustOverscanX);
|
|
|
|
int ret = OnScreenKeyboard(entrie, sizeof(entrie), 0);
|
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
Settings.AdjustOverscanX = atoi(entrie);
|
|
|
|
AdjustOverscan(Settings.AdjustOverscanX, Settings.AdjustOverscanY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Adjust Overscan Y
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entrie[20];
|
|
|
|
snprintf(entrie, sizeof(entrie), "%i", Settings.AdjustOverscanY);
|
|
|
|
int ret = OnScreenKeyboard(entrie, sizeof(entrie), 0);
|
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
Settings.AdjustOverscanY = atoi(entrie);
|
|
|
|
AdjustOverscan(Settings.AdjustOverscanX, Settings.AdjustOverscanY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-12-28 17:27:30 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
SetOptionValues();
|
|
|
|
|
|
|
|
return MENU_NONE;
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|