From 974f0787a4b78ea8f68a77bce59e50406972a43f Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Wed, 27 Apr 2022 22:39:15 +0400 Subject: [PATCH] vgui_support: added VGUI_TextInput callback stub --- vgui_support/vgui_input.cpp | 5 +++++ vgui_support/vgui_int.cpp | 1 + vgui_support/vgui_main.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/vgui_support/vgui_input.cpp b/vgui_support/vgui_input.cpp index 5280b5b7..0a6ee74b 100644 --- a/vgui_support/vgui_input.cpp +++ b/vgui_support/vgui_input.cpp @@ -83,4 +83,9 @@ void VGUI_MouseMove(int x, int y) return; pApp->internalCursorMoved( x, y, surface ); } + +void VGUI_TextInput(const char *text) +{ + // stub +} } diff --git a/vgui_support/vgui_int.cpp b/vgui_support/vgui_int.cpp index 777c53e3..1506767a 100644 --- a/vgui_support/vgui_int.cpp +++ b/vgui_support/vgui_int.cpp @@ -119,4 +119,5 @@ extern "C" EXPORT void InitAPI(vguiapi_t * api) g_api->Mouse = VGUI_Mouse; g_api->MouseMove = VGUI_MouseMove; g_api->Key = VGUI_Key; + g_api->TextInput = VGUI_TextInput; } diff --git a/vgui_support/vgui_main.h b/vgui_support/vgui_main.h index 454ecbae..5819531d 100644 --- a/vgui_support/vgui_main.h +++ b/vgui_support/vgui_main.h @@ -140,6 +140,8 @@ void VGui_Paint( void ); void VGUI_Mouse(VGUI_MouseAction action, int code); void VGUI_Key(VGUI_KeyAction action, VGUI_KeyCode code); void VGUI_MouseMove(int x, int y); +void VGUI_TextInput(const char *text); + // // vgui_clip.cpp //