diff --git a/Core/KeyMap.cpp b/Core/KeyMap.cpp index db32c28506..ca7b10fb12 100644 --- a/Core/KeyMap.cpp +++ b/Core/KeyMap.cpp @@ -423,6 +423,7 @@ const KeyMap_IntStrPair psp_button_names[] = { {VIRTKEY_SPEED_CUSTOM2, "Alt speed 2"}, {VIRTKEY_SPEED_ANALOG, "Analog speed"}, {VIRTKEY_PAUSE, "Pause"}, + {VIRTKEY_RESET_EMULATION, "Reset"}, {VIRTKEY_FRAME_ADVANCE, "Frame Advance"}, #if !defined(MOBILE_DEVICE) {VIRTKEY_RECORD, "Audio/Video Recording" }, diff --git a/Core/KeyMap.h b/Core/KeyMap.h index 6b0301c2f6..6f98207551 100644 --- a/Core/KeyMap.h +++ b/Core/KeyMap.h @@ -76,6 +76,7 @@ enum { VIRTKEY_EXIT_APP = 0x40000029, VIRTKEY_TOGGLE_MOUSE = 0x40000030, VIRTKEY_TOGGLE_TOUCH_CONTROLS = 0x40000031, + VIRTKEY_RESET_EMULATION = 0x40000032, VIRTKEY_LAST, VIRTKEY_COUNT = VIRTKEY_LAST - VIRTKEY_FIRST }; diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index bb352c8b81..5eb40f5383 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -750,6 +750,10 @@ void EmuScreen::onVKey(int virtualKeyCode, bool down) { } break; + case VIRTKEY_RESET_EMULATION: + System_PostUIMessage(UIMessage::REQUEST_GAME_RESET); + break; + #ifndef MOBILE_DEVICE case VIRTKEY_RECORD: if (down) { diff --git a/UI/GamepadEmu.h b/UI/GamepadEmu.h index a66671d9ae..dfe551b54b 100644 --- a/UI/GamepadEmu.h +++ b/UI/GamepadEmu.h @@ -315,6 +315,7 @@ namespace CustomKeyData { { ImageID::invalid(), VIRTKEY_ANALOG_ROTATE_CW }, { ImageID::invalid(), VIRTKEY_ANALOG_ROTATE_CCW }, { ImageID::invalid(), VIRTKEY_PAUSE }, + { ImageID::invalid(), VIRTKEY_RESET_EMULATION }, { ImageID::invalid(), VIRTKEY_DEVMENU }, #ifndef MOBILE_DEVICE { ImageID::invalid(), VIRTKEY_RECORD },