Browse Source

Add kbutton.h, fix includes

pull/2/head
Alibek Omarov 7 years ago
parent
commit
32b07cda86
  1. 18
      common/kbutton.h
  2. 4
      engine/client/cl_main.c
  3. 4
      engine/common/con_utils.c

18
common/kbutton.h

@ -0,0 +1,18 @@ @@ -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

4
engine/client/cl_main.c

@ -19,7 +19,7 @@ GNU General Public License for more details. @@ -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 ) @@ -2831,4 +2831,4 @@ void CL_Shutdown( void )
R_Shutdown ();
Con_Shutdown ();
}
}

4
engine/common/con_utils.c

@ -16,7 +16,7 @@ GNU General Public License for more details. @@ -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 ) @@ -1059,4 +1059,4 @@ void Key_EnumCmds_f( void )
}
else Con_Printf( S_ERROR "couldn't write help.txt.\n");
FS_AllowDirectPaths( false );
}
}

Loading…
Cancel
Save