From 8fb3096331f96fc8080b1ced6866a5bcb2077e84 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:50:49 +0300 Subject: [PATCH] Fix hotkeys --- src/emulator.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index e24d617f..c88e1249 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -172,11 +172,18 @@ void Emulator::run() { case SDLK_RETURN: hid.pressKey(Keys::Start); break; case SDLK_BACKSPACE: hid.pressKey(Keys::Select); break; - // Use the play button as a hot-key to pause or resume the emulator - case SDLK_AUDIOPLAY: { + // Use the F4 button as a hot-key to pause or resume the emulator + // We can't use the audio play/pause buttons because it's annoying + case SDLK_F4: { running ? pause() : resume(); break; } + + // Use F5 as a reset button + case SDLK_F5: { + reset(ReloadOption::Reload); + break; + } } break;