physics: fix a lot of problems

This commit is contained in:
nillerusr
2021-10-23 14:41:59 +03:00
parent cb04a1e451
commit dc2be1dcb4
31 changed files with 104 additions and 54 deletions
+2 -1
View File
@@ -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;
+4 -1
View File
@@ -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);
}
}
}