summaryrefslogtreecommitdiff
path: root/game/client/tf2/tf_in_main.cpp
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/tf_in_main.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/tf_in_main.cpp')
-rw-r--r--game/client/tf2/tf_in_main.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/game/client/tf2/tf_in_main.cpp b/game/client/tf2/tf_in_main.cpp
new file mode 100644
index 0000000..f7ccd63
--- /dev/null
+++ b/game/client/tf2/tf_in_main.cpp
@@ -0,0 +1,36 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: TF2 specific input handling
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "kbutton.h"
+#include "input.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: TF Input interface
+//-----------------------------------------------------------------------------
+class CTFInput : public CInput
+{
+public:
+ int GetButtonBits( int );
+};
+
+static CTFInput g_Input;
+
+// Expose this interface
+IInput *input = ( IInput * )&g_Input;
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Remove Jump from the input bits
+//-----------------------------------------------------------------------------
+int CTFInput::GetButtonBits( int bResetState )
+{
+ int iBits = CInput::GetButtonBits( bResetState );
+
+ //iBits &= ~IN_JUMP;
+
+ return iBits;
+}