Add kbutton.h, fix includes

This commit is contained in:
Alibek Omarov 2018-04-13 19:58:17 +03:00
parent 25325e6150
commit 32b07cda86
3 changed files with 22 additions and 4 deletions

18
common/kbutton.h Normal file
View File

@ -0,0 +1,18 @@
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#if !defined( KBUTTONH )
#define KBUTTONH
#pragma once
typedef struct kbutton_s
{
int down[2]; // key nums holding it down
int state; // low bit is down state
} kbutton_t;
#endif // !KBUTTONH

View File

@ -19,7 +19,7 @@ GNU General Public License for more details.
#include "cl_tent.h" #include "cl_tent.h"
#include "gl_local.h" #include "gl_local.h"
#include "input.h" #include "input.h"
#include "../cl_dll/kbutton.h" #include "kbutton.h"
#include "vgui_draw.h" #include "vgui_draw.h"
#define MAX_TOTAL_CMDS 32 #define MAX_TOTAL_CMDS 32
@ -2831,4 +2831,4 @@ void CL_Shutdown( void )
R_Shutdown (); R_Shutdown ();
Con_Shutdown (); Con_Shutdown ();
} }

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "common.h" #include "common.h"
#include "client.h" #include "client.h"
#include "const.h" #include "const.h"
#include "../cl_dll/kbutton.h" #include "kbutton.h"
extern convar_t *con_gamemaps; extern convar_t *con_gamemaps;
@ -1059,4 +1059,4 @@ void Key_EnumCmds_f( void )
} }
else Con_Printf( S_ERROR "couldn't write help.txt.\n"); else Con_Printf( S_ERROR "couldn't write help.txt.\n");
FS_AllowDirectPaths( false ); FS_AllowDirectPaths( false );
} }