Fix hotkeys

This commit is contained in:
wheremyfoodat 2023-07-26 19:50:49 +03:00
parent f434787b68
commit 8fb3096331

View file

@ -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;