Qt: Add "Step backwards" item for single increment rewind
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Apr 2015 21:12:05 -0700
2 files changed,
9 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -7,6 +7,7 @@ - Volume control
- More shortcuts are editable (e.g. quick save/load, solar sensor) - Rewind now shows the frame after rewinding - Import/Export of GameShark/Action Replay snapshots + - Add "Step backwards" item for single increment rewind Bugfixes: - GBA: Fix timers not updating timing when writing to only the reload register - All: Fix sanitize-deb script not cleaning up after itself
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -718,6 +718,14 @@ connect(rewind, SIGNAL(triggered()), m_controller, SLOT(rewind()));
m_gameActions.append(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"); videoSync->addBoolean(tr("Sync to &video"), emulationMenu); videoSync->connect([this](const QVariant& value) {