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:
parent
d50927f21f
commit
3576e474e6
@ -633,8 +633,6 @@ Called every frame, even if not generating commands
|
||||
*/
|
||||
void Host_InputFrame( void )
|
||||
{
|
||||
Platform_SendKeyEvents();
|
||||
|
||||
IN_Commands();
|
||||
|
||||
IN_MouseMove();
|
||||
|
@ -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 );
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user