Joe Ludwig beaae8ac45 Updated the SDK with the latest code from the TF and HL2 branches
* Adds support for Visual Studio 2012 and 2013
* VR Mode:
. Switches from headtrack.dll to sourcevr.dll
. Improved readability of the UI in VR
. Removed the IPD calibration tool. TF2 will now obey the Oculus
configuration file. Use the Oculus calibration tool in your SDK or
install and run "OpenVR" under Tools in Steam to calibrate your IPD.
. Added dropdown to enable VR mode in the Video options. Removed the -vr
command line option.
. Added the ability to switch in and out of VR mode without quitting the
game
. By default VR mode will run full screen. To switch back to a
borderless window set the vr_force_windowed convar.
. Added support for VR mode on Linux
* Many assorted bug fixes and other changes from Team Fortress in
various shared files
2013-12-03 08:54:16 -08:00

49 lines
1.1 KiB
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#ifndef LOGICRELAY_H
#define LOGICRELAY_H
#include "cbase.h"
#include "entityinput.h"
#include "entityoutput.h"
#include "eventqueue.h"
class CLogicRelay : public CLogicalEntity
{
public:
DECLARE_CLASS( CLogicRelay, CLogicalEntity );
CLogicRelay();
void Activate();
void Think();
// Input handlers
void InputEnable( inputdata_t &inputdata );
void InputEnableRefire( inputdata_t &inputdata ); // Private input handler, not in FGD
void InputDisable( inputdata_t &inputdata );
void InputToggle( inputdata_t &inputdata );
void InputTrigger( inputdata_t &inputdata );
void InputCancelPending( inputdata_t &inputdata );
DECLARE_DATADESC();
// Outputs
COutputEvent m_OnTrigger;
COutputEvent m_OnSpawn;
bool IsDisabled( void ){ return m_bDisabled; }
private:
bool m_bDisabled;
bool m_bWaitForRefire; // Set to disallow a refire while we are waiting for our outputs to finish firing.
};
#endif //LOGICRELAY_H