some updates
This commit is contained in:
@@ -11,11 +11,19 @@ public:
|
||||
virtual void OnGameButton( EInputDeviceType eDevice, EInputButton eScancode, bool bIsPressed ) override;
|
||||
virtual void OnGameAxis( EInputDeviceType eDevice, EInputAxis eAxis, float fValue) override;
|
||||
virtual void OnGameAxisDiff( EInputDeviceType eDevice, EInputAxis eAxis, float fValue ) override;
|
||||
|
||||
virtual void OnGameButton( EInputDeviceType eDevice, const char *szName, bool bIsPressed ) override {};
|
||||
virtual void OnGameAxis( EInputDeviceType eDevice, const char *szName, float fValue) override {};
|
||||
virtual void OnGameAxisDiff( EInputDeviceType eDevice, const char *szName, float fValue ) override {};
|
||||
|
||||
virtual void OnButton( EInputDeviceType eDevice, EInputButton eScancode, bool bIsPressed ) override {};
|
||||
virtual void OnAxis( EInputDeviceType eDevice, EInputAxis eAxis, float fValue) override {};
|
||||
virtual void OnAxisDiff( EInputDeviceType eDevice, EInputAxis eAxis, float fValue ) override {};
|
||||
|
||||
virtual void OnButton( EInputDeviceType eDevice, const char *szName, bool bIsPressed ) override {};
|
||||
virtual void OnAxis( EInputDeviceType eDevice, const char *szName, float fValue) override {};
|
||||
virtual void OnAxisDiff( EInputDeviceType eDevice, const char *szName, float fValue ) override {};
|
||||
|
||||
virtual void OnTextWriteUTF8( uint32_t uCode ) override {};
|
||||
|
||||
CUtlString m_aszBindings[k_EInputButton_Count];
|
||||
|
||||
@@ -138,7 +138,10 @@ void CFunnyGameBridge::Init()
|
||||
g_pPhysics = (IPhysics*)fnPhysicsFactory(PHYSICS_INTERFACE_VERSION, NULL);
|
||||
g_pPhysicsWorld = g_pPhysics->CreateWorld();
|
||||
|
||||
g_pWorldSystem->LoadMap("game/core/maps/test/test.fmap");
|
||||
if (g_pEngineConstants->m_bIsDedicated == false)
|
||||
g_pWorldSystem->LoadMap("game/core/maps/mainmenu/a.fmap");
|
||||
else
|
||||
g_pWorldSystem->LoadMap("game/core/maps/test/test.fmap");
|
||||
}
|
||||
|
||||
|
||||
@@ -199,6 +202,7 @@ void CFunnyGameBridge::Frame( float fDelta )
|
||||
g_pEngineVars->m_fDeltaTime = fDelta;
|
||||
|
||||
#ifdef STEAM
|
||||
|
||||
if (g_pEngineConstants->m_bIsSteam && g_pEngineConstants->m_bIsDedicated)
|
||||
{
|
||||
if (m_bIsConnectedToSteamRelay == 0 && SteamNetworkingUtils()->GetRelayNetworkStatus(NULL) == k_ESteamNetworkingAvailability_Current)
|
||||
|
||||
Reference in New Issue
Block a user