diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 0359a307..fd9f9b18 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -3162,6 +3162,8 @@ void Com_Frame( void ) { NET_Sleep(timeVal - 1); } while(Com_TimeVal(minMsec)); + IN_Frame(); + lastTime = com_frameTime; com_frameTime = Com_EventLoop(); diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 07eebe71..b1224ac6 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -1058,6 +1058,14 @@ int SV_SendQueuedPackets(void); qboolean UI_GameCommand( void ); qboolean UI_usesUniqueCDKey(void); +// +// input interface +// +void IN_Init( void *windowData ); +void IN_Frame( void ); +void IN_Shutdown( void ); +void IN_Restart( void ); + /* ============================================================== diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 586e37a1..0598f293 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -756,7 +756,6 @@ int main( int argc, char **argv ) while( 1 ) { - IN_Frame( ); Com_Frame( ); }