diff --git a/common/kbutton.h b/common/kbutton.h new file mode 100644 index 00000000..23cd8acc --- /dev/null +++ b/common/kbutton.h @@ -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 \ No newline at end of file diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 0bb84307..b1992fac 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -19,7 +19,7 @@ GNU General Public License for more details. #include "cl_tent.h" #include "gl_local.h" #include "input.h" -#include "../cl_dll/kbutton.h" +#include "kbutton.h" #include "vgui_draw.h" #define MAX_TOTAL_CMDS 32 @@ -2831,4 +2831,4 @@ void CL_Shutdown( void ) R_Shutdown (); Con_Shutdown (); -} \ No newline at end of file +} diff --git a/engine/common/con_utils.c b/engine/common/con_utils.c index 61d5dd5f..3931dacc 100644 --- a/engine/common/con_utils.c +++ b/engine/common/con_utils.c @@ -16,7 +16,7 @@ GNU General Public License for more details. #include "common.h" #include "client.h" #include "const.h" -#include "../cl_dll/kbutton.h" +#include "kbutton.h" 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"); FS_AllowDirectPaths( false ); -} \ No newline at end of file +}