Map toggle running function to hotkey

This commit is contained in:
wheremyfoodat 2023-07-26 19:33:06 +03:00
parent 1107dff9fa
commit 6daa419fd6

View file

@ -171,6 +171,12 @@ 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: {
running ? pause() : resume();
break;
}
}
break;