SDL - hotkey Q for toggling read-only/read+write

This commit is contained in:
shinydoofy 2009-04-11 03:26:36 +00:00
parent f15a131a20
commit 67c9ed20fd
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
11-apr-2009 - shinydoofy - sdl - dropped UTFConverter.c from SDL build and added hotkey Q for toggling read-only/read+write movie playback
04-apr-2009 - shinydoofy - fixed fcm->fm2 code once again (this time for good, hopefully). Thanks to Bisqwit! 04-apr-2009 - shinydoofy - fixed fcm->fm2 code once again (this time for good, hopefully). Thanks to Bisqwit!
04-apr-2009 - shinydoofy - Reverted UTF8<->UTF32 code changes to fix up the win32 build for now 04-apr-2009 - shinydoofy - Reverted UTF8<->UTF32 code changes to fix up the win32 build for now
01-apr-2009 - adelikat - Beginning 2.1.1 01-apr-2009 - adelikat - Beginning 2.1.1

View File

@ -303,6 +303,7 @@ InitConfig()
config->addOption(prefix + "IncreaseSpeed", SDLK_EQUALS); config->addOption(prefix + "IncreaseSpeed", SDLK_EQUALS);
config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH); config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH);
config->addOption(prefix + "InputDisplay", SDLK_i); config->addOption(prefix + "InputDisplay", SDLK_i);
config->addOption(prefix + "MovieToggleReadWrite", SDLK_q);
#ifdef CREATE_AVI #ifdef CREATE_AVI
config->addOption(prefix + "MuteCapture", SDLK_DELETE); config->addOption(prefix + "MuteCapture", SDLK_DELETE);
#endif #endif

View File

@ -168,6 +168,7 @@ int movieToggleFrameDisplayKey;
int lagCounterDisplayKey; int lagCounterDisplayKey;
int SubtitleDisplayKey; int SubtitleDisplayKey;
int InputDisplayKey; int InputDisplayKey;
int movieToggleReadWriteKey;
#ifdef CREATE_AVI #ifdef CREATE_AVI
int MuteCaptureKey; int MuteCaptureKey;
#endif #endif
@ -208,6 +209,7 @@ void setHotKeys()
g_config->getOption("SDL.Hotkeys.MovieToggleFrameDisplay", &movieToggleFrameDisplayKey); g_config->getOption("SDL.Hotkeys.MovieToggleFrameDisplay", &movieToggleFrameDisplayKey);
g_config->getOption("SDL.Hotkeys.SubtitleDisplay", &SubtitleDisplayKey); g_config->getOption("SDL.Hotkeys.SubtitleDisplay", &SubtitleDisplayKey);
g_config->getOption("SDL.Hotkeys.InputDisplay", &InputDisplayKey); g_config->getOption("SDL.Hotkeys.InputDisplay", &InputDisplayKey);
g_config->getOption("SDL.Hotkeys.MovieToggleReadWrite", &movieToggleReadWriteKey);
#ifdef CREATE_AVI #ifdef CREATE_AVI
g_config->getOption("SDL.Hotkeys.MuteCapture", &MuteCaptureKey); g_config->getOption("SDL.Hotkeys.MuteCapture", &MuteCaptureKey);
#endif #endif
@ -423,6 +425,10 @@ KeyboardCommands()
g_config->setOption("SDL.InputDisplay", input_display); g_config->setOption("SDL.InputDisplay", input_display);
} }
if(_keyonly(movieToggleReadWriteKey)) {
FCEUI_SetMovieToggleReadOnly(!FCEUI_GetMovieToggleReadOnly());
}
#ifdef CREATE_AVI #ifdef CREATE_AVI
if(_keyonly(MuteCaptureKey)) { if(_keyonly(MuteCaptureKey)) {
extern int mutecapture; extern int mutecapture;

View File

@ -1,5 +1,4 @@
my_list = Split(""" my_list = Split("""
ConvertUTF.c
crc32.cpp crc32.cpp
endian.cpp endian.cpp
general.cpp general.cpp