add vgui touch panel, touch logic

This commit is contained in:
nillerusr
2021-10-09 15:22:16 +03:00
parent 81b976c384
commit 63e458ef84
12 changed files with 617 additions and 28 deletions
+6
View File
@@ -22,6 +22,7 @@
#include <vgui_controls/Panel.h>
#include <KeyValues.h>
#include "filesystem.h"
#include "touch.h"
#include "matsys_controls/matsyscontrols.h"
#ifdef SIXENSE
@@ -129,6 +130,7 @@ static void VGui_VideoMode_AdjustForModeChange( void )
fps->Destroy();
messagechars->Destroy();
loadingdisc->Destroy();
touch_panel->Destroy();
// Recreate our panels.
VPANEL gameToolParent = enginevgui->GetPanel( PANEL_CLIENTDLL_TOOLS );
@@ -142,6 +144,7 @@ static void VGui_VideoMode_AdjustForModeChange( void )
// Debugging or related tool
fps->Create( toolParent );
touch_panel->Create( toolParent );
#if defined( TRACK_BLOCKING_IO )
iopanel->Create( gameDLLPanel );
#endif
@@ -207,6 +210,8 @@ void VGui_CreateGlobalPanels( void )
// Debugging or related tool
fps->Create( toolParent );
touch_panel->Create( toolParent );
#if defined( TRACK_BLOCKING_IO )
iopanel->Create( gameDLLPanel );
#endif
@@ -236,6 +241,7 @@ void VGui_Shutdown()
iopanel->Destroy();
#endif
fps->Destroy();
touch_panel->Destroy();
messagechars->Destroy();
loadingdisc->Destroy();