From cf3fe0e852e45b6babdf1315014977faf4f2247e Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Sun, 4 Aug 2024 09:10:01 -0700 Subject: [PATCH] dbg: allow middle-click break in DAP debugger --- src/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 0ac9cd8..c3c6187 100644 --- a/src/input.c +++ b/src/input.c @@ -244,7 +244,8 @@ static void mouse_event(SDL_MouseButtonEvent *e) if (code) key_state[code] = e->state == SDL_PRESSED; #ifdef DEBUGGER_ENABLED - if (e->button == SDL_BUTTON_MIDDLE && e->state == SDL_PRESSED && dbg_start_in_debugger) + if (e->button == SDL_BUTTON_MIDDLE && e->state == SDL_PRESSED + && (dbg_start_in_debugger || dbg_dap)) dbg_repl(); #endif }