diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 998c681e91992f8722c847c3546e4a162afc8b78..1ac9c9e097f6300ae7d8b33874e657a05d41f52b 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
curMsButState := curMsButState or msev.but;
msev.bstate := curMsButState;
msev.kstate := curKbState;
- g_Holmes_mouseEvent(msev);
+ if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);
end;
end;
SDL_MOUSEWHEEL:
msev.y := curMsY;
msev.bstate := curMsButState;
msev.kstate := curKbState;
- g_Holmes_mouseEvent(msev);
+ if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);
end;
end;
SDL_MOUSEMOTION:
msev.y := curMsY;
msev.bstate := curMsButState;
msev.kstate := curKbState;
- g_Holmes_mouseEvent(msev);
+ if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);
end;
SDL_TEXTINPUT:
if ParamStr(idx) = '--no-particles-physics' then gpart_dbg_phys_enabled := false;
if ParamStr(idx) = '--no-particle-phys' then gpart_dbg_phys_enabled := false;
if ParamStr(idx) = '--no-particle-physics' then gpart_dbg_phys_enabled := false;
+
+ if ParamStr(idx) = '--holmes' then g_holmes_enabled := false;
end;
//if gdbg_map_use_tree_draw then e_WriteLog('using TREE renderer', MSG_NOTIFY);