mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Merge pull request #4595 from aldelaro5/add-debugger-hotkeys
Add debugger hotkeys
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user