diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index c789caf7785c74a09a79e9e691f62b6277898551..7f5d5b95c13739b6037e226450e11aa3b618a705 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
MapsDir: string;
ModelsDir: string;
GameWAD: string;
MapsDir: string;
ModelsDir: string;
GameWAD: string;
-
+ gSkipFirstChar: Boolean; (* hack for console/chat input *)
implementation
implementation
e_InitInput();
g_Touch_Init;
e_InitInput();
g_Touch_Init;
+(*
if (e_JoysticksAvailable > 0) then
e_WriteLog('Input: Joysticks available.', TMsgType.Notify)
else
e_WriteLog('Input: No Joysticks.', TMsgType.Notify);
if (e_JoysticksAvailable > 0) then
e_WriteLog('Input: Joysticks available.', TMsgType.Notify)
else
e_WriteLog('Input: No Joysticks.', TMsgType.Notify);
+*)
if (not gNoSound) then
begin
if (not gNoSound) then
begin
IK_BACKQUOTE, VK_CONSOLE: // <`/~/¨/¸>:
begin
IK_BACKQUOTE, VK_CONSOLE: // <`/~/¨/¸>:
begin
- g_Console_Switch();
+ if not gChatShow then
+ g_Console_Switch()
end;
IK_ESCAPE, VK_ESCAPE: // <Esc>:
end;
IK_ESCAPE, VK_ESCAPE: // <Esc>:
Msg: g_gui.TMessage;
a: Integer;
begin
Msg: g_gui.TMessage;
a: Integer;
begin
+ if gSkipFirstChar then
+ begin
+ gSkipFirstChar := False;
+ Exit
+ end;
+
if (not gChatShow) and ((C = '`') or (C = '~') or (C = '¸') or (C = '¨')) then Exit;
if gConsoleShow or gChatShow then
if (not gChatShow) and ((C = '`') or (C = '~') or (C = '¸') or (C = '¨')) then Exit;
if gConsoleShow or gChatShow then