Qt: Add "Step backwards" item for single increment rewind

This commit is contained in:
Jeffrey Pfau 2015-04-15 21:12:05 -07:00
parent dee394f10f
commit af19f5bc45
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Features:
- More shortcuts are editable (e.g. quick save/load, solar sensor) - More shortcuts are editable (e.g. quick save/load, solar sensor)
- Rewind now shows the frame after rewinding - Rewind now shows the frame after rewinding
- Import/Export of GameShark/Action Replay snapshots - Import/Export of GameShark/Action Replay snapshots
- Add "Step backwards" item for single increment rewind
Bugfixes: Bugfixes:
- GBA: Fix timers not updating timing when writing to only the reload register - GBA: Fix timers not updating timing when writing to only the reload register
- All: Fix sanitize-deb script not cleaning up after itself - All: Fix sanitize-deb script not cleaning up after itself

View File

@ -718,6 +718,14 @@ void Window::setupMenu(QMenuBar* menubar) {
m_gameActions.append(rewind); m_gameActions.append(rewind);
addControlledAction(emulationMenu, rewind, "rewind"); addControlledAction(emulationMenu, rewind, "rewind");
QAction* frameRewind = new QAction(tr("Step backwards"), emulationMenu);
frameRewind->setShortcut(tr("Ctrl+B"));
connect(frameRewind, &QAction::triggered, [this] () {
m_controller->rewind(1);
});
m_gameActions.append(frameRewind);
addControlledAction(emulationMenu, frameRewind, "frameRewind");
ConfigOption* videoSync = m_config->addOption("videoSync"); ConfigOption* videoSync = m_config->addOption("videoSync");
videoSync->addBoolean(tr("Sync to &video"), emulationMenu); videoSync->addBoolean(tr("Sync to &video"), emulationMenu);
videoSync->connect([this](const QVariant& value) { videoSync->connect([this](const QVariant& value) {