mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-10 10:49:35 +00:00
1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user