Ein wenig mehr aufgeräumt

This commit is contained in:
Yamagi Burmeister 2010-10-19 08:44:12 +00:00
parent 7edacb5638
commit c9b7cfb21e
2 changed files with 11 additions and 15 deletions

View file

@ -465,11 +465,12 @@ IN_BackendInit ( in_state_t *in_state_p )
void
IN_BackendShutdown ( void )
{
ri.Cmd_RemoveCommand( "+mlook" );
ri.Cmd_RemoveCommand( "-mlook" );
ri.Cmd_RemoveCommand( "force_centerview" );
Com_Printf("Input shut down.\n");
}
/*
* Mouse button handling
*/
void
IN_BackendMouseButtons ( void )
{
@ -513,6 +514,9 @@ IN_BackendMouseButtons ( void )
mouse_oldbuttonstate = mouse_buttonstate;
}
/*
* Move handling
*/
void
IN_BackendMove ( usercmd_t *cmd )
{

View file

@ -71,8 +71,6 @@ void ( *IN_BackendShutdown_fp )( void );
void ( *IN_BackendMouseButtons_fp )( void );
void ( *IN_BackendMove_fp )( usercmd_t *cmd );
void IN_Init ( void );
extern void VID_MenuShutdown ( void );
/* DLL GLUE */
@ -302,7 +300,10 @@ VID_LoadRefresh ( char *name )
Sys_Error( "No input backend init functions in REF.\n" );
}
IN_Init();
if ( IN_BackendInit_fp )
{
IN_BackendInit_fp( &in_state );
}
if ( re.Init( 0, 0 ) == -1 )
{
@ -435,15 +436,6 @@ VID_CheckRefExists ( const char *ref )
}
/* INPUT */
void
IN_Init ( void )
{
if ( IN_BackendInit_fp )
{
IN_BackendInit_fp( &in_state );
}
}
void
IN_Shutdown ( void )
{