small change to last rev

This commit is contained in:
punkrockguy318 2008-11-13 18:25:25 +00:00
parent a29c8f25a4
commit ef335b1321
2 changed files with 4 additions and 0 deletions

View File

@ -299,6 +299,7 @@ InitConfig()
config->addOption(prefix + "SelectState7", SDLK_7); config->addOption(prefix + "SelectState7", SDLK_7);
config->addOption(prefix + "SelectState8", SDLK_8); config->addOption(prefix + "SelectState8", SDLK_8);
config->addOption(prefix + "SelectState9", SDLK_9); config->addOption(prefix + "SelectState9", SDLK_9);
config->addOption(prefix + "MovieToggleFrameDisplay", SDLK_BACKSPACE);
// All mouse devices // All mouse devices

View File

@ -167,6 +167,9 @@ int stateKey[10];
int movieToggleFrameDisplayKey; int movieToggleFrameDisplayKey;
int lagCounterDisplayKey; 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() void setHotKeys()
{ {
g_config->getOption("SDL.Hotkeys.CheatMenu", &cheatMenuKey); g_config->getOption("SDL.Hotkeys.CheatMenu", &cheatMenuKey);