fixed windows builds
This commit is contained in:
@@ -177,7 +177,7 @@ void IInput::KeyEvent( EInputKey key, EKeyEventType event )
|
||||
|
||||
if (event == KEY_EVENT_TYPE_DOWN && key == KEY_F11)
|
||||
{
|
||||
IConsole::AddCommand("exit;");
|
||||
Console()->AddCommand("exit;");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -185,12 +185,12 @@ void IInput::KeyEvent( EInputKey key, EKeyEventType event )
|
||||
if (g_inputModeStack[g_inputModeStack.GetSize()-1] == INPUT_MODE_GAME)
|
||||
{
|
||||
if (event == KEY_EVENT_TYPE_DOWN) {
|
||||
IConsole::AddCommand(g_bindings[key]);
|
||||
IConsole::AddCommand(";");
|
||||
Console()->AddCommand(g_bindings[key]);
|
||||
Console()->AddCommand(";");
|
||||
}
|
||||
if (event == KEY_EVENT_TYPE_UP)
|
||||
{
|
||||
auto binding = IConsole::ParseCommandLine(g_bindings[key]);
|
||||
auto binding = Console()->ParseCommandLine(g_bindings[key]);
|
||||
if (binding.GetSize()==0)
|
||||
return;
|
||||
if (binding[0].GetSize() == 0)
|
||||
@@ -199,8 +199,8 @@ void IInput::KeyEvent( EInputKey key, EKeyEventType event )
|
||||
{
|
||||
CUtlString command = binding[0][0];
|
||||
command.GetString()[0] = '-';
|
||||
IConsole::AddCommand(command);
|
||||
IConsole::AddCommand(";");
|
||||
Console()->AddCommand(command);
|
||||
Console()->AddCommand(";");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user