ImDebugger: Replace the Skim button by adding hold-shift functionality to "Into"

That is, you can hold shift to repeatedly click the button.
This commit is contained in:
Henrik Rydgård committed 2025-06-12 10:23:00 +02:00
1 parent f9c0c41074
commit bc688d83b1
1 file changed
+1 -7
+1 -7
View File
@@ -1205,7 +1205,7 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, ImConfig &cfg, ImContro
ImGui::Text("Step: ");
ImGui::SameLine();
if (ImGui::SmallButton("Into")) {
if (ImGui::RepeatButtonShift("Into")) {
u32 stepSize = disasmView_.getInstructionSizeAt(mipsDebug->GetPC());
Core_RequestCPUStep(CPUStepType::Into, stepSize);
}
@@ -1239,12 +1239,6 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, ImConfig &cfg, ImContro
Core_Resume();
}
ImGui::SameLine();
if (ImGui::RepeatButton("Skim")) {
u32 stepSize = disasmView_.getInstructionSizeAt(mipsDebug->GetPC());
Core_RequestCPUStep(CPUStepType::Into, stepSize);
}
ImGui::EndDisabled();
ImGui::SameLine();