mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Ein wenig mehr aufgeräumt
This commit is contained in:
parent
7edacb5638
commit
c9b7cfb21e
2 changed files with 11 additions and 15 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue