diff options
| author | aldelaro5 <aldelaro5@gmail.com> | 2016-12-30 15:22:59 -0500 |
|---|---|---|
| committer | aldelaro5 <aldelaro5@gmail.com> | 2017-01-02 18:16:52 -0500 |
| commit | cc7c410cf1f22b92dc7ab1725d095ae61c08d763 (patch) | |
| tree | c670de1bbd1ec671b5efc5aec7833325a4136467 /Source/Core/DolphinWX/Frame.cpp | |
| parent | 00e03f14361c5eefd3f81f1609cd8d44a10bcbe4 (diff) | |
Add debugging hotkeys
They are separated into 3 groups and will only be shown in the input config dialog if the emulator was in debug mode.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Frame.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index e4bd51fccc..e1b1a8b03c 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -52,7 +52,9 @@ #include "Core/State.h" #include "DolphinWX/Config/ConfigMain.h" +#include "DolphinWX/Debugger/BreakpointDlg.h" #include "DolphinWX/Debugger/CodeWindow.h" +#include "DolphinWX/Debugger/MemoryCheckDlg.h" #include "DolphinWX/GameListCtrl.h" #include "DolphinWX/Globals.h" #include "DolphinWX/LogWindow.h" @@ -1282,6 +1284,63 @@ void CFrame::ParseHotkeys() ->UpdateSyncButtonState(IsHotkey(HK_TRIGGER_SYNC_BUTTON, true)); } + if (UseDebugger) + { + if (IsHotkey(HK_STEP)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_STEP); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_STEP_OVER)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_STEPOVER); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_STEP_OUT)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_STEPOUT); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_SKIP)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_SKIP); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_SHOW_PC)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_GOTOPC); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_SET_PC)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_SETPC); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_BP_TOGGLE)) + { + wxCommandEvent evt(wxEVT_MENU, IDM_TOGGLE_BREAKPOINT); + GetEventHandler()->AddPendingEvent(evt); + } + if (IsHotkey(HK_BP_ADD)) + { + BreakPointDlg bpDlg(this); + if (bpDlg.ShowModal() == wxID_OK) + { + wxCommandEvent evt(wxEVT_HOST_COMMAND, IDM_UPDATE_BREAKPOINTS); + g_pCodeWindow->GetEventHandler()->AddPendingEvent(evt); + } + } + if (IsHotkey(HK_MBP_ADD)) + { + MemoryCheckDlg memDlg(this); + if (memDlg.ShowModal() == wxID_OK) + { + wxCommandEvent evt(wxEVT_HOST_COMMAND, IDM_UPDATE_BREAKPOINTS); + g_pCodeWindow->GetEventHandler()->AddPendingEvent(evt); + } + } + } + // Wiimote connect and disconnect hotkeys int WiimoteId = -1; if (IsHotkey(HK_WIIMOTE1_CONNECT)) |
