2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-03 06:35:36 +01:00

engine: get rid of SendKeyEvents function, it only listened for WM_QUIT on Windows and we don't use that with SDL

This commit is contained in:
Alibek Omarov 2024-12-27 18:19:11 +03:00
parent d50927f21f
commit 3576e474e6
4 changed files with 0 additions and 25 deletions

View File

@ -633,8 +633,6 @@ Called every frame, even if not generating commands
*/
void Host_InputFrame( void )
{
Platform_SendKeyEvents();
IN_Commands();
IN_MouseMove();

View File

@ -55,7 +55,6 @@ void Sys_DebugBreak( void );
#define Sys_GetParmFromCmdLine( parm, out ) _Sys_GetParmFromCmdLine( parm, out, sizeof( out ))
qboolean _Sys_GetParmFromCmdLine( const char *parm, char *out, size_t size );
qboolean Sys_GetIntFromCmdLine( const char *parm, int *out );
void Sys_SendKeyEvents( void );
void Sys_Print( const char *pMsg );
void Sys_PrintLog( const char *pMsg );
void Sys_InitLog( void );

View File

@ -253,14 +253,6 @@ static inline char *Platform_Input( void )
#endif
}
#if XASH_WIN32
void Platform_SendKeyEvents( void );
#else
static inline void Platform_SendKeyEvents( void )
{
}
#endif
/*
==============================================================================

View File

@ -56,17 +56,3 @@ void Platform_MessageBox( const char *title, const char *message, qboolean paren
}
#endif // XASH_MESSAGEBOX == MSGBOX_WIN32
// I don't know why we need this or what this does
void Platform_SendKeyEvents( void )
{
MSG msg;
while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ))
{
if( !GetMessage( &msg, NULL, 0, 0 ))
Sys_Quit ();
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}