diff --git a/engine/client/input.c b/engine/client/input.c index 704c9b43..8a506b0e 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -633,8 +633,6 @@ Called every frame, even if not generating commands */ void Host_InputFrame( void ) { - Platform_SendKeyEvents(); - IN_Commands(); IN_MouseMove(); diff --git a/engine/common/system.h b/engine/common/system.h index 30eca2e6..617d636c 100644 --- a/engine/common/system.h +++ b/engine/common/system.h @@ -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 ); diff --git a/engine/platform/platform.h b/engine/platform/platform.h index 6798b7df..3b288d71 100644 --- a/engine/platform/platform.h +++ b/engine/platform/platform.h @@ -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 - /* ============================================================================== diff --git a/engine/platform/win32/sys_win.c b/engine/platform/win32/sys_win.c index eacfad69..41ea86c5 100644 --- a/engine/platform/win32/sys_win.c +++ b/engine/platform/win32/sys_win.c @@ -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 ); - } -}