SDL: hotkey Del to toggle --mute for avi capturing

This commit is contained in:
shinydoofy 2009-03-28 22:15:53 +00:00
parent 5d95228971
commit 48a9428abc
3 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
---version 2.0.4 yet to be released---
28-mar-2009 - shinydoofy - sdl - added hotkey Del to toggle mute avi capturing
28-mar-2009 - shinydoofy - sdl - fix fm2 playback and fcm->fm2 conversion crash at the cost of ugly 0x00 bytes behind the author's comment line
28-mar-2009 - adelikat - Lua - added FCEU.poweron() and FCEU.softreset()
27-mar-2009 - shinydoofy - sdl - added --no-config

View File

@ -303,6 +303,7 @@ InitConfig()
config->addOption(prefix + "IncreaseSpeed", SDLK_EQUALS);
config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH);
config->addOption(prefix + "InputDisplay", SDLK_i);
config->addOption(prefix + "MuteCapture", SDLK_DELETE);
config->addOption(prefix + "Quit", SDLK_ESCAPE);
//config->addOption(prefix + "Power", 0);

View File

@ -168,6 +168,7 @@ int movieToggleFrameDisplayKey;
int lagCounterDisplayKey;
int SubtitleDisplayKey;
int InputDisplayKey;
int MuteCaptureKey;
// this function loads the sdl hotkeys from the config file into the
// global scope. this elimates the need for accessing the config file
@ -205,6 +206,7 @@ void setHotKeys()
g_config->getOption("SDL.Hotkeys.MovieToggleFrameDisplay", &movieToggleFrameDisplayKey);
g_config->getOption("SDL.Hotkeys.SubtitleDisplay", &SubtitleDisplayKey);
g_config->getOption("SDL.Hotkeys.InputDisplay", &InputDisplayKey);
g_config->getOption("SDL.Hotkeys.MuteCapture", &MuteCaptureKey);
/*
config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH);
config->addOption(prefix + "Power", 0);
@ -417,6 +419,11 @@ KeyboardCommands()
g_config->setOption("SDL.InputDisplay", input_display);
}
if(_keyonly(MuteCaptureKey)) {
extern int mutecapture;
mutecapture ^= 1;
}
if(_keyonly(pauseKey)) {
FCEUI_ToggleEmulationPause();
}