mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
physics: fix a lot of problems
This commit is contained in:
@@ -1484,7 +1484,8 @@ void TextEntry::OnMousePressed(MouseCode code)
|
||||
return;
|
||||
}
|
||||
|
||||
g_pInputSystem->StartTextInput();
|
||||
if( IsEnabled() )
|
||||
g_pInputSystem->StartTextInput();
|
||||
|
||||
// move the cursor to where the mouse was pressed
|
||||
int x, y;
|
||||
|
||||
@@ -652,6 +652,9 @@ void CConsolePanel::OnTextChanged(Panel *panel)
|
||||
// see if they've hit the tilde key (which opens & closes the console)
|
||||
int len = Q_strlen(m_szPartialText);
|
||||
|
||||
if( !len )
|
||||
return;
|
||||
|
||||
bool hitTilde = ( m_szPartialText[len - 1] == '~' || m_szPartialText[len - 1] == '`' ) ? true : false;
|
||||
|
||||
bool altKeyDown = ( vgui::input()->IsKeyDown( KEY_LALT ) || vgui::input()->IsKeyDown( KEY_RALT ) ) ? true : false;
|
||||
@@ -1253,4 +1256,4 @@ void CConsoleDialog::OnKeyCodePressed( vgui::KeyCode code )
|
||||
{
|
||||
BaseClass::OnKeyCodePressed(code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user