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 }