mirror of https://github.com/FWGS/hlsdk-xash3d
Handle key input in vgui (#198)
This commit is contained in:
parent
ba2cab60df
commit
504e8b19d5
|
@ -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…
Reference in New Issue