mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +12:00
Fix hotkeys
This commit is contained in:
parent
f434787b68
commit
8fb3096331
1 changed files with 9 additions and 2 deletions
|
@ -172,11 +172,18 @@ void Emulator::run() {
|
||||||
case SDLK_RETURN: hid.pressKey(Keys::Start); break;
|
case SDLK_RETURN: hid.pressKey(Keys::Start); break;
|
||||||
case SDLK_BACKSPACE: hid.pressKey(Keys::Select); break;
|
case SDLK_BACKSPACE: hid.pressKey(Keys::Select); break;
|
||||||
|
|
||||||
// Use the play button as a hot-key to pause or resume the emulator
|
// Use the F4 button as a hot-key to pause or resume the emulator
|
||||||
case SDLK_AUDIOPLAY: {
|
// We can't use the audio play/pause buttons because it's annoying
|
||||||
|
case SDLK_F4: {
|
||||||
running ? pause() : resume();
|
running ? pause() : resume();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use F5 as a reset button
|
||||||
|
case SDLK_F5: {
|
||||||
|
reset(ReloadOption::Reload);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue