mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-09 15:20:01 +03:00
dbg: allow middle-click break in DAP debugger
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user