From ef335b1321f88f3d35d249f2438586aa3862e5b3 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Thu, 13 Nov 2008 18:25:25 +0000 Subject: [PATCH] small change to last rev --- src/drivers/sdl/config.cpp | 1 + src/drivers/sdl/input.cpp | 3 +++ 2 files changed, 4 insertions(+) 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);