mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-01 02:30:17 +02:00
Ease of use improvements to rewind support.
This commit is contained in:
@@ -14,8 +14,14 @@ auto InputManager::bindHotkeys() -> void {
|
||||
}));
|
||||
|
||||
hotkeys.append(InputHotkey("Rewind").onPress([&] {
|
||||
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);
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user