touch: replace static arrays with linked list

This commit is contained in:
nillerusr
2021-10-13 18:18:36 +03:00
parent 63e458ef84
commit 977bac3205
6 changed files with 197 additions and 164 deletions

View File

@@ -28,6 +28,7 @@
#include <vgui_controls/MenuItem.h>
// memdbgon must be the last include file in a .cpp file!!!
#include <tier0/memdbgon.h>
#include <inputsystem/iinputsystem.h>
enum
{
@@ -1482,7 +1483,9 @@ void TextEntry::OnMousePressed(MouseCode code)
BaseClass::OnMousePressed( code );
return;
}
g_pInputSystem->StartTextInput();
// move the cursor to where the mouse was pressed
int x, y;
input()->GetCursorPos(x, y);