Commit e931a510 authored by Aloshi's avatar Aloshi

Can now press Ctrl-G to toggle show all borders on all ComponentGrids.

parent 98eda43b
......@@ -29,12 +29,14 @@ void Settings::setDefaults()
mBoolMap["ParseGamelistOnly"] = false;
mBoolMap["DrawFramerate"] = false;
mBoolMap["ShowExit"] = true;
mBoolMap["Debug"] = false;
mBoolMap["Windowed"] = false;
mBoolMap["EnableSounds"] = true;
mBoolMap["ShowHelpPrompts"] = true;
mBoolMap["ScrapeRatings"] = true;
mBoolMap["Debug"] = false;
mBoolMap["DebugGrid"] = false;
mIntMap["DimTime"] = 120*1000;
mIntMap["ScraperResizeWidth"] = 400;
mIntMap["ScraperResizeHeight"] = 0;
......
......@@ -104,7 +104,11 @@ void Window::deinit()
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment