summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9339177)
raw | patch | inline | side by side (parent: 9339177)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 31 Aug 2017 12:34:34 +0000 (15:34 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 31 Aug 2017 12:35:16 +0000 (15:35 +0300) |
src/game/g_holmes.pas | patch | blob | history | |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index 6b623f011a154993d94052f35847ec89ca8c7f22..8c4b111d40c6607549ed3c9d29d84dc7d49da04f 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
// ////////////////////////////////////////////////////////////////////////// //
procedure g_Holmes_Draw ();
begin
+ {$IF not DEFINED(HEADLESS)}
holmesInitCommands();
holmesInitBinds();
begin
plrDebugDraw();
end;
+ {$ENDIF}
laserSet := false;
end;
procedure g_Holmes_DrawUI ();
begin
+ {$IF not DEFINED(HEADLESS)}
uiDraw();
drawCursor();
+ {$ENDIF}
end;
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 226c4550c73fc5c7758048d1c94ab03da677c896..0ac570dad8b00a296278d4e0163f19ee28785b72 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
kbev.sym := ev.key.keysym.sym;
kbev.bstate := curMsButState;
kbev.kstate := curKbState;
+ {$IF not DEFINED(HEADLESS)}
if g_Holmes_keyEvent(kbev) then
begin
if (ev.type_ <> SDL_KEYDOWN) then e_KeyUpDown(ev.key.keysym.scancode, false);
exit;
end;
+ {$ENDIF}
end;
if (ev.type_ = SDL_KEYDOWN) then KeyPress(key);
e_KeyUpDown(ev.key.keysym.scancode, (ev.type_ = SDL_KEYDOWN));
end;
+ {$IF not DEFINED(HEADLESS)}
SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP:
begin
msev.dx := ev.button.x-curMsX;
msev.kstate := curKbState;
if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);
end;
+ {$ENDIF}
SDL_TEXTINPUT:
begin