Browse Source

Add kbutton.h, fix includes

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

18
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

2
engine/client/cl_main.c

@ -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

2
engine/common/con_utils.c

@ -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;

Loading…
Cancel
Save