all repos — mgba @ af19f5bc4502098ed4333d04fa94e1668cb776bf

mGBA Game Boy Advance Emulator

Qt: Add "Step backwards" item for single increment rewind
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Apr 2015 21:12:05 -0700
commit

af19f5bc4502098ed4333d04fa94e1668cb776bf

parent

dee394f10f2fa2c665806bcb7fe5a96c142d8de7

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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) {