Browse Source

Handle key input in vgui (#198)

hl_urbicide
Roman Chistokhodov 3 years ago committed by GitHub
parent
commit
504e8b19d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      cl_dll/input.cpp

6
cl_dll/input.cpp

@ -380,7 +380,11 @@ Return 1 to allow engine to process the key, otherwise, act on it as needed @@ -380,7 +380,11 @@ Return 1 to allow engine to process the key, otherwise, act on it as needed
============
*/
int DLLEXPORT HUD_Key_Event( int down, int keynum, const char *pszCurrentBinding )
{
{
#if USE_VGUI
if (gViewPort)
return gViewPort->KeyInput(down, keynum, pszCurrentBinding);
#endif
return 1;
}

Loading…
Cancel
Save