mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Can now press Ctrl-G to toggle show all borders on all ComponentGrids.
This commit is contained in:
parent
98eda43bab
commit
e931a51017
|
@ -29,12 +29,14 @@ void Settings::setDefaults()
|
||||||
mBoolMap["ParseGamelistOnly"] = false;
|
mBoolMap["ParseGamelistOnly"] = false;
|
||||||
mBoolMap["DrawFramerate"] = false;
|
mBoolMap["DrawFramerate"] = false;
|
||||||
mBoolMap["ShowExit"] = true;
|
mBoolMap["ShowExit"] = true;
|
||||||
mBoolMap["Debug"] = false;
|
|
||||||
mBoolMap["Windowed"] = false;
|
mBoolMap["Windowed"] = false;
|
||||||
mBoolMap["EnableSounds"] = true;
|
mBoolMap["EnableSounds"] = true;
|
||||||
mBoolMap["ShowHelpPrompts"] = true;
|
mBoolMap["ShowHelpPrompts"] = true;
|
||||||
mBoolMap["ScrapeRatings"] = true;
|
mBoolMap["ScrapeRatings"] = true;
|
||||||
|
|
||||||
|
mBoolMap["Debug"] = false;
|
||||||
|
mBoolMap["DebugGrid"] = false;
|
||||||
|
|
||||||
mIntMap["DimTime"] = 120*1000;
|
mIntMap["DimTime"] = 120*1000;
|
||||||
mIntMap["ScraperResizeWidth"] = 400;
|
mIntMap["ScraperResizeWidth"] = 400;
|
||||||
mIntMap["ScraperResizeHeight"] = 0;
|
mIntMap["ScraperResizeHeight"] = 0;
|
||||||
|
|
|
@ -104,7 +104,11 @@ void Window::deinit()
|
||||||
|
|
||||||
void Window::input(InputConfig* config, Input input)
|
void Window::input(InputConfig* config, Input input)
|
||||||
{
|
{
|
||||||
if(config->isMappedTo("mastervolup", input))
|
if(config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_g && SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug"))
|
||||||
|
{
|
||||||
|
// toggle debug grid
|
||||||
|
Settings::getInstance()->setBool("DebugGrid", !Settings::getInstance()->getBool("DebugGrid"));
|
||||||
|
}else if(config->isMappedTo("mastervolup", input))
|
||||||
{
|
{
|
||||||
VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() + 5);
|
VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() + 5);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue