#include "input.h" #include "console.h" #include "tier0/lib.h" #include "tier1/commandline.h" #include "math3d.h" char g_PressedKeys[KEY_NUM_KEYS]; float g_fAxisValues[AXIS_NUM_AXIS]; CUtlString g_bindings[256]; struct KeyName_t { const char *szName; EInputKey key; }; KeyName_t keys[] = { {"TAB",KEY_TAB}, {"ENTER",KEY_ENTER}, {"ESCAPE",KEY_ESCAPE}, {"SPACE",KEY_SPACE}, {"A",KEY_A}, {"B",KEY_B}, {"C",KEY_C}, {"D",KEY_D}, {"E",KEY_E}, {"F",KEY_F}, {"G",KEY_G}, {"H",KEY_H}, {"I",KEY_I}, {"J",KEY_J}, {"K",KEY_K}, {"L",KEY_L}, {"M",KEY_M}, {"N",KEY_N}, {"O",KEY_O}, {"P",KEY_P}, {"Q",KEY_Q}, {"R",KEY_R}, {"S",KEY_S}, {"T",KEY_T}, {"U",KEY_U}, {"V",KEY_V}, {"W",KEY_W}, {"X",KEY_X}, {"Y",KEY_Y}, {"Z",KEY_Z}, }; //----------------------------------------------------------------------------- // Converts string (eg. tab, mouse0, w, 0) to keycode //----------------------------------------------------------------------------- EInputKey IInput_StringToKey( char *psz ) { for (uint32_t i = 0; i