mirror of https://github.com/bsnes-emu/bsnes.git
Ease of use improvements to rewind support.
This commit is contained in:
parent
32e2abdd90
commit
b4c4b318e8
|
@ -14,8 +14,14 @@ auto InputManager::bindHotkeys() -> void {
|
|||
}));
|
||||
|
||||
hotkeys.append(InputHotkey("Rewind").onPress([&] {
|
||||
program.rewindMode(Program::Rewind::Mode::Rewinding);
|
||||
if(!emulator->loaded()) return;
|
||||
if(program.rewind.frequency == 0) {
|
||||
program.showMessage("Please enable rewind support in Settings->Emulator first");
|
||||
} else {
|
||||
program.rewindMode(Program::Rewind::Mode::Rewinding);
|
||||
}
|
||||
}).onRelease([&] {
|
||||
if(!emulator->loaded()) return;
|
||||
program.rewindMode(Program::Rewind::Mode::Playing);
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue