From 05016f86396709a6c26d3c65365f2004ba4e7e99 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 6 Feb 2023 16:40:36 +0300 Subject: [PATCH] engine: vgui: add EnableTextInput to the API --- engine/client/vgui/vgui_draw.c | 2 +- engine/vgui_api.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/vgui/vgui_draw.c b/engine/client/vgui/vgui_draw.c index 8ae08584..a1b3fe9f 100644 --- a/engine/client/vgui/vgui_draw.c +++ b/engine/client/vgui/vgui_draw.c @@ -63,7 +63,7 @@ static struct VGUI_CursorSelect, VGUI_GetColor, VGUI_IsInGame, - NULL, + Key_EnableTextInput, VGUI_GetMousePos, VGUI_UtfProcessChar, Platform_GetClipboardText, diff --git a/engine/vgui_api.h b/engine/vgui_api.h index 2ce89226..2412d76d 100644 --- a/engine/vgui_api.h +++ b/engine/vgui_api.h @@ -180,7 +180,7 @@ typedef struct vguiapi_s void (*CursorSelect)( VGUI_DefaultCursor cursor ); byte (*GetColor)( int i, int j ); qboolean (*IsInGame)( void ); - void (*Unused)( void ); + void (*EnableTextInput)( qboolean enable, qboolean force ); void (*GetCursorPos)( int *x, int *y ); int (*ProcessUtfChar)( int ch ); int (*GetClipboardText)( char *buffer, size_t bufferSize );