engine: client: vgui: added VGui_UpdateInternalCursorState function

This commit is contained in:
SNMetamorph 2022-11-08 04:01:30 +04:00 committed by Alibek Omarov
parent c1fe547925
commit 8cbe0e5b30
2 changed files with 5 additions and 4 deletions

View File

@ -51,11 +51,7 @@ void GAME_EXPORT VGUI_GetMousePos( int *_x, int *_y )
void GAME_EXPORT VGUI_CursorSelect( VGUI_DefaultCursor cursor )
{
if( s_currentCursor != cursor )
{
Platform_SetCursorType( cursor );
s_currentCursor = cursor;
}
}
byte GAME_EXPORT VGUI_GetColor( int i, int j)
@ -488,6 +484,10 @@ void VGui_RunFrame( void )
//stub
}
void VGui_UpdateInternalCursorState( VGUI_DefaultCursor cursorType )
{
s_currentCursor = cursorType;
}
void *GAME_EXPORT VGui_GetPanel( void )
{

View File

@ -36,6 +36,7 @@ void VGui_MouseMove( int x, int y );
qboolean VGui_IsActive( void );
void *VGui_GetPanel( void );
void VGui_ReportTextInput( const char *text );
void VGui_UpdateInternalCursorState( VGUI_DefaultCursor cursorType );
#ifdef __cplusplus
}
#endif