dbg: allow middle-click break in DAP debugger

This commit is contained in:
Nunuhara Cabbage
2024-08-04 09:10:01 -07:00
parent 79ebe443f5
commit cf3fe0e852
+2 -1
View File
@@ -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
}