mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
add vgui touch panel, touch logic
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user