mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
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
Block a user