mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
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.
This commit is contained in:
parent
00e03f1436
commit
cc7c410cf1
6 changed files with 123 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue