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. 4
      cl_dll/input.cpp

4
cl_dll/input.cpp

@ -381,6 +381,10 @@ 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 ) 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; return 1;
} }

Loading…
Cancel
Save