diff --git a/src/drivers/sdl/config.cpp b/src/drivers/sdl/config.cpp index d08d23d9..58e9fac2 100644 --- a/src/drivers/sdl/config.cpp +++ b/src/drivers/sdl/config.cpp @@ -299,6 +299,7 @@ InitConfig() config->addOption(prefix + "SelectState7", SDLK_7); config->addOption(prefix + "SelectState8", SDLK_8); config->addOption(prefix + "SelectState9", SDLK_9); + config->addOption(prefix + "MovieToggleFrameDisplay", SDLK_BACKSPACE); // All mouse devices diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index edc8c9a0..1fdfbf03 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -167,6 +167,9 @@ int stateKey[10]; int movieToggleFrameDisplayKey; int lagCounterDisplayKey; +// this function loads the sdl hotkeys from the config file into the +// global scope. this elimates the need for accessing the config file +// on every cycle of keyboardinput() void setHotKeys() { g_config->getOption("SDL.Hotkeys.CheatMenu", &cheatMenuKey);